Difference between revisions of "Osiris/API/TriggerRegisterForCharacter"
From Divinity Engine Wiki
m |
m (Link page explaining event triggers) |
||
Line 7: | Line 7: | ||
===== Notes ===== | ===== Notes ===== | ||
* If you register a trigger for a character while the character is currently inside the trigger, a [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]] event will also be thrown. | * If you register a trigger for a character while the character is currently inside the trigger, a [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]] event will also be thrown. | ||
− | * Event triggers are automatically registered for all characters by the engine and should not be manually registered/unregistered. | + | * [[Entity_types|Event]] triggers are automatically registered for all characters by the engine and should not be manually registered/unregistered. |
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]] | * [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]] |
Revision as of 15:18, 14 October 2017
Full Definition(s)
- call TriggerRegisterForCharacter((TRIGGERGUID)_Trigger, (CHARACTERGUID)_Character)
Description
Ensures that whenever a _Character enters _Trigger, a CharacterEnteredTrigger event will be thrown for this trigger/character combination.
Return Values
- None
Notes
- If you register a trigger for a character while the character is currently inside the trigger, a CharacterEnteredTrigger event will also be thrown.
- Event triggers are automatically registered for all characters by the engine and should not be manually registered/unregistered.