DeleteWhenAble - ObjectReference

From Creation Kit
Jump to: navigation, search

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.

Syntax

Function DeleteWhenAble()

Parameters

None.

Return Value

None.

Examples

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

See Also