GetExitingObject
From NWN Lexicon
Jump to navigationJump to search
GetExitingObject()
Get the object that last left the calling object.
object GetExitingObject();
Description
Returns the object that last left the caller. This function works on triggers, areas of effect, modules, areas and encounters.
Return a value of OBJECT_INVALID on an error.
Remarks
For AOE's, when they are destroyed (End of Duration or DestroyObject()), the Exit event fires for all of the creatures within it, so it can remove effects done OnEnter - and, for the event, the OBJECT_SELF is still valid.
Version
1.22
See Also
| functions: |
author: John Shuell, editor: Jasperre