WaitFor3DLoad - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Waits for this object's 3d to load, or until it knows the 3d won't load (object is disabled, cell unloads, etc).

Syntax[edit | edit source]

bool Function WaitFor3DLoad() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

True if the 3d has loaded, false if the 3d failed to load or won't load.

Examples[edit | edit source]

; Wait for 3d to load on another object before continuing
if OtherThing.WaitFor3DLoad()
  ; 3d loaded, do something with it
else
  ; 3d didn't load, so fallback here
endIf

See Also[edit | edit source]