Difference between revisions of "Reference Variables"
Clarified persistent-stuff, commented Jduvall's caveats and moved them to Discussion.
imported>Jduvall |
imported>JOG (Clarified persistent-stuff, commented Jduvall's caveats and moved them to Discussion.) |
||
|
set myRef to GetContainer
</pre>
Like other variables, you can set a reference variable on another scripted object:
UserRef.Modactorvalue blade -50
end
Keep in mind, that References to non-persistent objects aren't accessible when the object is not in memory (i.e. in another cell) The same applies to inventory items that are currently within a container. Trying to access a non-accessible reference might have no effect at all, but it's equally probable that it will crash the game. While there are safeguards in the CS to prevent you from accessing such references directly, you can bypass them by using reference-variables.
Do so at your own risk...
[[Category:Variables]]
| |||