Play - EffectShader
Revision as of 19:36, 2 February 2015 by imported>Chesko
Member of: EffectShader Script
Plays this magic effect shader on the object for the specified duration in seconds.
SyntaxEdit
Function Play(ObjectReference akObject, float afDuration = -1.0) native
ParametersEdit
- 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 ValueEdit
None.
ExamplesEdit
; 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)
NotesEdit
- The effects created by this function stack, so using it multiple times without stopping may cause frame rate issues.[ Verification needed - See Discussion page ]