Posts: 25
Threads: 10
Joined: Jan 2009
Reputation:
0
Is there any way gamemode and filterscript could "communicate" with each other? For example i have variable in gamemode and i want to access it from filterscript.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
There are too ways to communicate:
Playervariables, so you can have global Variables for every player.
and
CallRemoteFunction, with this you can call functions in the gamemode from your fs and vice versa, so you could "send" variables as parameters.
Posts: 25
Threads: 10
Joined: Jan 2009
Reputation:
0
Thanks for your answer.
About CallRemoteFunction, does it use global variables from source script or caller script?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
No problem,
If you call a remote function, the called function uses only the variables of the script the function is in and those you submitted as paramers, if you mean this.
Posts: 25
Threads: 10
Joined: Jan 2009
Reputation:
0
Yes i mean this. Thank you.