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

From Divinity Engine Wiki
Jump to: navigation, search
(Documented DB_InRegion and DB_WasInRegion)
 
m
Line 9: Line 9:
 
* [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]]
 
* [[Osiris/API/CharacterEnteredTrigger|CharacterEnteredTrigger]]
 
* [[Osiris/API/CharacterLeftTrigger|CharacterLeftTrigger]]
 
* [[Osiris/API/CharacterLeftTrigger|CharacterLeftTrigger]]
 +
* [[Osiris/API/ObjectIsInTrigger|ObjectIsInTrigger]]
 
* [[Osiris/API/TriggerRegisterForCharacter|TriggerRegisterForCharacter]]
 
* [[Osiris/API/TriggerRegisterForCharacter|TriggerRegisterForCharacter]]
 
* [[Osiris/API/TriggerRegisterForPlayers|TriggerRegisterForPlayers]]
 
* [[Osiris/API/TriggerRegisterForPlayers|TriggerRegisterForPlayers]]

Revision as of 16:36, 15 October 2017

Full Definition(s)
  • DB_InRegion((CHARACTERGUID)_Char, (TRIGGERGUID)_Region)
  • DB_WasInRegion((CHARACTERGUID)_Char, (TRIGGERGUID)_Region)
Description

Whenever a CharacterEnteredTrigger event is thrown, a DB_InRegion() fact for this character/trigger combination will be defined. When a CharacterLeftTrigger event is thrown, this fact is removed and a DB_WasInRegion() fact with the same data gets added.

Notes
  • When a non-player character dies while DB_InRegion(_Npc, _Trigger) was defined for it, this fact will be removed. Furthermore, no DB_WasInRegion() fact will be added at that point. When a player character dies, the DB_InRegion() database does not change.
See Also