Difference between revisions of "PlayAnimation - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
imported>Qazaaq
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Animation]]
'''Member of:''' [[ObjectReference Script]]
'''Member of:''' [[ObjectReference Script]]



Latest revision as of 17:41, 16 October 2016

Member of: ObjectReference Script

Starts playing the specified animation on the object and returns immediately. (Internally, it sends the named event to the object's animation graph) If it succeeds, it returns true.

Syntax[edit | edit source]

bool Function PlayAnimation(string asAnimation) native

Parameters[edit | edit source]

  • asAnimation: The animation to play. (The name of the event to send to the animation graph)

Return Value[edit | edit source]

True if the animation successfully started playing.

Examples[edit | edit source]

; Play the "flip" animation on the switch
Switch.PlayAnimation("flip")

See Also[edit | edit source]