Enable - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Enables this reference, popping it into existance. This function is latent and will wait for the enable to happen and 3d to load (if the 3d is going to load - objects outside the loaded area will not be waited on).

Syntax[edit | edit source]

Function Enable(bool abFadeIn = false) native

Parameters[edit | edit source]

  • abFadeIn: Whether to fade in the object or not. Function won't return until object is faded in. If this is an enable parent the children will not be faded.
    • Default: False

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Enables the reference, popping it in
TempReference.Enable()


; Enables the reference, fading it in
TempReference.Enable(true)

Notes[edit | edit source]

  • Small objects will never fade.
  • Children of an enable parent will not fade and will simply pop into existence when the parent object has finished fading.

See Also[edit | edit source]