Difference between revisions of "Osiris/Shared/DB OneShotPlayerTrigger"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * '''DB OneShotPlayerTrigger'''(''(TRIGGERGUID)'''''_Trigger''') * '''ProcOneShotTriggerEntered'''(''(CHARACTERGUID)'''''_Player''',''(TRIGGERGU...")
 
Line 8: Line 8:
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/Shared/ProcTriggerRegisterForPlayers|ProcTriggerRegisterForPlayers]]
 
* [[Osiris/Shared/ProcTriggerRegisterForPlayers|ProcTriggerRegisterForPlayers]]
 +
 +
 +
[[Category:Osiris Shared Mod Helpers|DB OneShotPlayerTrigger]]

Revision as of 17:05, 8 January 2018

Full Definition(s)
  • DB OneShotPlayerTrigger((TRIGGERGUID)_Trigger)
  • ProcOneShotTriggerEntered((CHARACTERGUID)_Player,(TRIGGERGUID)_Trigger)
Description

Adding a trigger to the database registers the _Trigger for all players and ensures the trigger only fires once, calling the ProcOneShotTriggerEntered procedure when this happens, with the entering _Player and the _Trigger as parameters.

Notes
  • Simply unregistering the trigger when it is first triggered is not safe: if the party teleports somewhere together, multiple events may be thrown simultaneously.
See Also