Difference between revisions of "Reference Variables"
more warning
imported>Dev akm (stronger inventory reference warning) |
imported>Dev akm (more warning) |
||
|
The same applies to inventory items that are currently within a container (i.e., items that an actor is carrying). This means that scripted functions which require a reference, such as:
itemRef.pms ghosteffect 10
will only work on an item when it is not in inventory. The CS will warn you about this when using a reference variable on a carryable item, but it will not warn you if you use an implied reference, such as:
pms ghosteffect 10
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.
| |||