OnUsed

From NWN Lexicon

Contents

[edit] OnUsed

The script attached to this event fires when an item is used. This can be used to open a door or set off a trap when a lever is pulled or a brazier is extinguished.


[edit] Trigger

When a placeable object is used.


[edit] Function(s)

GetLastUsedBy() returns the last object that used the placeable object.


[edit] Remarks

You can use DoPlaceableObjectAction to make a lever move position (EG: On or Off), and SetPlaceableIllumination can turn on/off a light source, for example, a brazier.


[edit] See Also

functions: 

GetLastUsedBy()


Personal tools
Categories