Thread: level.variables
View Single Post
  #3  
Old 06-01-2001, 06:04 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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