OnCellDetach - ObjectReference
From Creation Kit
Member of: ObjectReference Script
Event called when this reference's parent cell is detached.
Event OnCellDetach() Debug.Trace("Our parent cell has detached") endEvent
This event is not reliably called between multiple intervening OnCellAttach - ObjectReference. This event may be called crossing cell boundaries even though very close to the player: as a follower, or as a cart driver.
(For notes on the meaning of attachment, see the talk page).