PlayAnimation - ObjectReference
Revision as of 17:41, 16 October 2016 by imported>Qazaaq
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.
SyntaxEdit
bool Function PlayAnimation(string asAnimation) native
ParametersEdit
- asAnimation: The animation to play. (The name of the event to send to the animation graph)
Return ValueEdit
True if the animation successfully started playing.
ExamplesEdit
; Play the "flip" animation on the switch
Switch.PlayAnimation("flip")