Difference between revisions of "Osiris/Shared/DB InRegion"
From Divinity Engine Wiki
m |
m |
||
Line 16: | Line 16: | ||
* [[Osiris/API/TriggerLaunchIterator|TriggerLaunchIterator]] | * [[Osiris/API/TriggerLaunchIterator|TriggerLaunchIterator]] | ||
− | [[Category:Osiris Shared Mod Helpers]] | + | [[Category:Osiris Shared Mod Helpers|InRegion]] |
Revision as of 15:51, 19 December 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.