FSO.SimAntics.VM.SetGlobalValue C# (CSharp) Method

SetGlobalValue() public method

Sets a global value for this Virtual Machine.
public SetGlobalValue ( ushort var, short value ) : bool
var ushort Index for value, must be in range 0 - 31.
value short Global value.
return bool
        public bool SetGlobalValue(ushort var, short value)
        {
            if (var > 32) throw new Exception("Global Access out of bounds!");
            GlobalState[var] = value;
            return true;
        }