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: GetEnteringObject
categories: Action on Object Functions | Area Functions | Encounter Functions | Module Functions | Spells Functions | Traps Functions


 author: John Shuell, editor: Jasperre