Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   A client side variable for NPC Server (https://forums.graalonline.com/forums/showthread.php?t=2550)

T-Squad 05-10-2001 11:12 AM

i need to know a client side variable (something like this.variable or server.variable) to use for a script im making, i dont want to use //#CLIENTSIDE because it makes the whole script client side, i need a client side variable, not a string...thnx

KJS 05-10-2001 11:20 AM

u just say
 
you just say

local.whatever

and then it wont send it into the server
it will keep it client side

Admins 05-10-2001 11:30 AM

local. is for client-side scripts

What exactly are you meaning with
'client-side variable' in server-side script?
When a flag is starting with client. then it
is also sent to the client, and the client
can change it too (e.g. in weapons)
All other flags are saved for the current
player, except this. flags (for the npc)
and server. flags (for the server).

KJS 05-10-2001 11:31 AM

intresting
 
I never knew about client.whatever
intresting

Admins 05-10-2001 11:35 AM

Yes only makes sense with npcserver :-)

Admins 05-11-2001 02:25 AM

Current player: of course only
exists when there is an event involving
a player (playertouchsme, playerleaves,
playerdies,playerchats,washit,action...)
or when using with (players[index]) or
with (getplayer(accountname))

Admins 05-11-2001 06:42 AM

it wouldn't do anything then because
there is no player

Admins 05-11-2001 08:30 PM

No variables are sent to other players/servers,
only special flags (which can be used
as string variables)
showimgs are only sent to other players
for displaying, its a client-side thing


All times are GMT +2. The time now is 07:45 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.