Enable - ObjectReference

Revision as of 19:06, 4 July 2015 by imported>Bug64 (Added a note on enabling an Actor)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Enables this reference, popping it into existance. This function is latent and will wait for the enable to happen.

SyntaxEdit

Function Enable(bool abFadeIn = false) native

ParametersEdit

  • 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 ValueEdit

None.

ExamplesEdit

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


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

NotesEdit

  • Small objects will never fade.
  • Enabling an Actor will cause the actor to snap back to the location it had when it was disabled
  • Children of an enable parent will not fade and will simply pop into existence when the parent object has finished fading.
  • Lights will never fade. In order for an enable/disable function to work on a light, the enable() function must be left blank for the light to be enabled or disabled.

See AlsoEdit