Accessing undeclared Gamecache variables

Light Alkmst

New Member
Reaction score
20
If I try to access a variable form gamecache that I haven't declared yet, would it just cancel out of the trigger, or crash the game? I need to know to decide whether to implement it or not.
 

Light Alkmst

New Member
Reaction score
20
Just reporting my findings...reals return 0 if undeclared, so I'm going to assume that means that if just returns whatever is equivalent to null, depending on data-type.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> reals return 0 if undeclared

So do integers.
Units come back as "null".

So, yes, it works. And depends on what you're asking for.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top