17.09.2015, 22:54
(
Последний раз редактировалось Kamper; 18.09.2015 в 03:01.
)
Is it possible create a global variable to be accessible from another JS files? A kind of global variable accessible from any file
#edit
I figured out that I can simply use include function to load some JS file with a global variable xD
#another question
Can I assign a value to a new attribute of player's object, eg player.test = 1, that when the player disconnect this object will be cleared?
I noticed that when you use the function GameModeExit to reload the server, the changes made in source don't have any effect in the server until you close/open it again. It's quite bother...
#edit
I figured out that I can simply use include function to load some JS file with a global variable xD
#another question
Can I assign a value to a new attribute of player's object, eg player.test = 1, that when the player disconnect this object will be cleared?
I noticed that when you use the function GameModeExit to reload the server, the changes made in source don't have any effect in the server until you close/open it again. It's quite bother...