Background for Fallout 4
Member of the ObjectReference script
voidfunctionDeleteWhenAble()

Description

Wiki Description

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.

Documentation String

This will become a native function... it will wait until the object is not persisting, then delete itself.

Documentation Comment

jduvall


Examples

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

Auto-Generated Example

myObjectReference__toCallFunctionOn.DeleteWhenAble()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.