Quote:
|
Originally Posted by Googi
The commands say and say2 are clientside, right?
|
say = client;
say2 = client/server;
Quote:
|
And what about functions that have both clientside and serverside commands in them, which side of the "//#CLIENTSIDE" statement do I put them on, or how do I otherwise deal with them?
|
Im going to use an example of how ive come to understand it, for example, on an npc i have made i use if (playertouchsme) on the serverside, and if a player has touched it, it will be destroyed. That way to prevent any other players from touching it, so only one person can get the prize. If i had put it on the clientside, it only destroyed for the player that touched it, but every other player has come and touched it too, and gotten the prize that only the first person should have gotten.
In other words, i think it is mostly about the effect you want, if they can be used on both sides.
Quote:
|
And is it okay to use "if (this.variable=number)" conditions on the clientside part of the script?
|
If you set them on the clientside, yes