Jump to content

global value


toha

Recommended Posts

hi. does exist in ELUNA possibility to declare global r/w variables? global for all scripts. values of this vars in server RAM and script can read it fast. if this variable changed on one script then other scripts can read new value.

just example

-- one script save value
SetWorldVar("propname",123);      

-- other script read value
local val = GetWorldVar('propname');   -- 123

if no then what is easiest way to set some global value and read that value from other scripts? for ex. AI stop move if other script set gloval var == 1

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use