Difference between revisions of "Osiris/API/TriggerRegisterForPlayers"

From Divinity Engine Wiki
Jump to: navigation, search
m (Updated event trigger link)
m
Line 2: Line 2:
 
* call '''TriggerRegisterForPlayers'''(''(TRIGGERGUID)'''''_Trigger''')
 
* call '''TriggerRegisterForPlayers'''(''(TRIGGERGUID)'''''_Trigger''')
 
===== Description =====
 
===== Description =====
Ensures that whenever a player character enters '''_Trigger''', a [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]] event will be thrown for this trigger/character combination.
+
Ensures that whenever a player character enters or leaves '''_Trigger''', a [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]] resp. [[Osiris/API/CharacterLeftTrigger|CharacterLeftTrigger]] event will be thrown for this trigger/character combination.
 
===== Return Values =====
 
===== Return Values =====
 
* None
 
* None

Revision as of 15:25, 15 October 2017

Full Definition(s)
  • call TriggerRegisterForPlayers((TRIGGERGUID)_Trigger)
Description

Ensures that whenever a player character enters or leaves _Trigger, a CharacterEnteredTrigger resp. CharacterLeftTrigger event will be thrown for this trigger/character combination.

Return Values
  • None
Notes
  • Event triggers are automatically registered for all characters by the engine and should not be manually registered/unregistered.
See Also