OnUnload - ObjectReference
From Creation Kit
Member of: ObjectReference Script
Event called when the object's 3d has been unloaded OR the object leaves the loaded area.
Event OnUnload() Debug.Trace("This object has been unloaded, animations can't be played on it anymore") endEvent
- When this event is received any calls to the object that manipulate it may fail.