Sign in to follow this  

Global Variables

2 posts in this topic

I tried searching around for this, but perhaps I am using the wrong terminology.   In the Exile Code, is there any reason (performance wise, or security) that certain variables on objects are sometimes set globally and sometimes not?

For example, lock state: _object setVariable ["ExileIsLocked",-1];  Taken from the server network_lockToggle script in this case is not set globally.  In other parts of the same file (depending on the object type) it is.  _object setVariable ["ExileIsLocked",-1,true];

Is this done for a reason and if so what is the reason?


Share this post

Link to post
Share on other sites
On ‎17‎/‎03‎/‎2018 at 3:40 PM, BlackheartsGaming said:

_object setVariable ["ExileIsLocked",-1]; 

_object is the local vehicle to the person doing the locking, the ExileIsLocked is the global lock state for any player who goes near the _object

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.