Difference between revisions of "Reference Variables"
m
no edit summary
imported>JOG |
imported>Millinghordesman m |
||
|
</pre>
You can use a reference variable anywhere you could use an [[Object_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.
A reference variable whose object is not in memory (such as a static object after the player leaves that object's cell) is treated as uninitialized.
You set reference variables using the set command, like other variables. Normally, you will want to use a [[reference variable function]], which returns a [[formID]]. For example:
| |||