Play - EffectShader

From the Fallout4 CreationKit Wiki
Revision as of 17:36, 2 March 2010 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: EffectShader Script

Plays this magic effect shader on the object for the specified duration in seconds.

Syntax[edit | edit source]

Function Play(ObjectReference akObject, float afDuration = -1.0) native

Parameters[edit | edit source]

  • akObject: The object to play the effect on.
  • afDuration: How long to play the effect for, in seconds. If duration is negative, the effect will play until told to stop.
    • Default: -1.0

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Play the sparkle effect on the werewolf until told to stop
Sparkle.Play(Werewolf)


; Play the sparkle effect on the werewolf for 5 seconds
Sparkle.Play(Werewolf, 5.0)

See Also[edit | edit source]