DeleteWhenAble - ObjectReference

Member of: ObjectReference Script

Waits for this reference to lose its parent cell, or for its parent cell to become detached, then deletes it.

IMPORTANT NOTE: This function waits until the reference is ready to be deleted, and won't return until it does, so DO NOT use this for quest stages or they'll get hung up until the parent cell detaches.

SyntaxEdit

Function DeleteWhenAble()

ParametersEdit

None.

Return ValueEdit

None.

ExamplesEdit

; Deletes the specified reference when its parent cell is gone
TempReference.DeleteWhenAble()

See AlsoEdit