OnDisturbed

From NWN Lexicon
Revision as of 11:26, 21 August 2012 by Dood (talk | contribs) (Created page with "=OnDisturbed= The script attached to this event fires when the inventory of the object is changed at all. The inventory can be disturbed by a pickpocket attempt or the remo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

OnDisturbed

The script attached to this event fires when the inventory of the object is changed at all. The inventory can be disturbed by a pickpocket attempt or the removal of items from a placeable object.


Trigger

Something has been added or removed from a creature's or placeable object's inventory.


Function(s)

GetInventoryDisturbItem() returns the item that was either added or removed to the inventory of OBJECT_SELF.


Remarks

Since a creature can't have an item added or remove from its inventory (it's not a container), then if its inventory is disturbed something must have been stolen. The creature finds a valid target and attacks.


See Also

functions: 

GetLastDisturbed()