Difference between revisions of "Reference variables"

Jump to navigation Jump to search
75 bytes added ,  21:59, 11 October 2011
Fixing erroneous information about uninitialised reference variables
imported>JOG
imported>Cipscis
(Fixing erroneous information about uninitialised reference variables)
Line 5: Line 5:
</pre>
</pre>


You can use a reference variable anywhere you could use an [[Reference|object reference]]. Uninitialized reference variables act as if they referred to the scripted object itself; otherwise a reference variable acts just like any other reference.  
You can use a reference variable anywhere you could use an [[Reference|object reference]]. Uninitialized reference variables hold a value of 0, and will cause a script to silently stop running if used to call a [[Reference_functions|reference function]]; otherwise a reference variable acts just like any other reference.  


You set reference variables using the set command, like other variables. Normally, you will want to use a [[:Category:Reference_Variable_Functions|reference variable function]], which returns a [[formID]]. For example:
You set reference variables using the set command, like other variables. Normally, you will want to use a [[:Category:Reference_Variable_Functions|reference variable function]], which returns a [[formID]]. For example:
Anonymous user

Navigation menu