eventOnUnload()
Description
Wiki Description
Event called when the object's 3d has been unloaded OR the object leaves the loaded area.
Documentation Comment
Event recieved when this object is being unloaded - will be fired every time this object is unloaded
Caveats
CK Wiki - Notes
- When this event is received any calls to the object that manipulate it may fail.
Examples
Event OnUnload()
Debug.Trace("This object has been unloaded, animations can't be played on it anymore")
endEventAuto-Generated Example
Scriptname MyCoolScript extends ObjectReference
event OnUnload()
Debug.trace("Event received - OnUnload")
endEvent