Osiris/API/TriggerRegisterForItems

From Divinity Engine Wiki
Revision as of 16:27, 19 December 2017 by Tinkerer (talk | contribs)
Jump to: navigation, search
Full Definition(s)
  • call TriggerRegisterForItems((TRIGGERGUID)_Trigger)
Description

Ensures that whenever any item enters resp. leaves _Trigger, an ItemEnteredTrigger resp. ItemLeftTrigger event is thrown for this trigger/item combination, as well as an ItemTemplateEnteredTrigger resp. ItemTemplateLeftTrigger event.

Return Values
  • None
Notes
  • Unlike with character triggers, registering a trigger for items will not throw ItemEnteredTrigger/ItemTemplateEnteredTrigger events for all items already in that trigger.
  • Items in a character's inventory do not trigger this event when the character enters the trigger.
See Also