Difference between revisions of "Osiris/API/TriggerRegisterForItems"
From Divinity Engine Wiki
m |
(→Notes) |
||
Line 7: | Line 7: | ||
===== Notes ===== | ===== Notes ===== | ||
* Unlike with character triggers, registering a trigger for items will ''not'' throw [[Osiris/API/ItemEnteredTrigger|ItemEnteredTrigger]]/[[Osiris/API/ItemTemplateEnteredTrigger|ItemTemplateEnteredTrigger]] events for all items already in that trigger. | * Unlike with character triggers, registering a trigger for items will ''not'' throw [[Osiris/API/ItemEnteredTrigger|ItemEnteredTrigger]]/[[Osiris/API/ItemTemplateEnteredTrigger|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. | + | * Items in a character's inventory do not trigger this event when the character enters/exits the trigger. |
+ | |||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/ItemEnteredTrigger|ItemEnteredTrigger]] | * [[Osiris/API/ItemEnteredTrigger|ItemEnteredTrigger]] |
Latest revision as of 17:21, 21 February 2018
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/exits the trigger.