Difference between revisions of "Osiris/API/TriggerRegisterForItems"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented TriggerRegisterForItems)
 
m
Line 17: Line 17:
 
* [[Osiris/API/TriggerUnregisterForItems|TriggerUnregisterForItems]]
 
* [[Osiris/API/TriggerUnregisterForItems|TriggerUnregisterForItems]]
  
[[Category:Osiris Calls]]
+
[[Category:Osiris Calls|TriggerRegisterForItems]]

Revision as of 16:27, 19 December 2017

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