![]() |
level.variables
How exactly do level.variables work? I am looking over my code, and I think I have a ::rough:: outline on how they work. Can any one help me on this one?
|
I think they're the server-side version of normal variables:
level.variable on a server-side script would be the equivalent of variable on a clientside script |
Yes while on client-side variables are
always level-wide (except this. variables), on server-side all variables are valid for the current script only by default. 'Current script' means the npc script or class code. To make the variable available outside of the current script, you have different choices: this. variables of the current npc (changes when using with (getnpc(name)) / with (npcs[index])) level. variables of the current level server. variables accessible by all npcs on the npcserver |
| All times are GMT +2. The time now is 08:24 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.