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?
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