
06-14-2005, 12:56 PM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
In old scripting:
On serverside variables without prefix are only valid inside the same script (npc script, weapon script, class script), on clientside they are "global".
New scripting:
All variables without prefix are global, except function parameters which are automatically made temp. variables. It is planned that there will be an option to make all variables without prefix temp. variables. That option will not be enabled by default because it could break scripts, since in the old scripting engine such variables are often used to pass parameters to functions (although this. variables are better for that if you want to pass parameters to functions inside other scripts/classes). |
|
|
|