Play - VisualEffect

Revision as of 16:35, 23 March 2010 by imported>Jlundin (New page: Category:Scripting Category:Papyrus '''Member of:''' VisualEffect Script Plays this visual effect on the object for the specified duration in seconds - possibly facing the sec...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: VisualEffect Script

Plays this visual effect on the object for the specified duration in seconds - possibly facing the second object.

Syntax

Function Play(ObjectReference akObject, float afTime = -1.0, ObjectReference akFacingObject = None) native

Parameters

  • akObject: The object to play the effect on.
  • afTime: How long to play the effect for, in seconds. If time is negative, the effect will play until told to stop.
    • Default: -1.0
  • akFacingObject: What object the effect should face. Only works on effects that can be facing other objects.
    • Default: None

Return Value

None.

Examples

; Play the soul-sucking effect on the werewolf until told to stop
SoulSucking.Play(Werewolf)


; Play the soul-sucking effect on the werewolf - pointing it at the human
SoulSucking.Play(Werewolf, akFacingObject = Human)

See Also