Mod:Creation Kit/PlayAnimation - ObjectReference

Member of: Mod:Creation Kit/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
bool Function PlayAnimation(string asAnimation) native

Parameters

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

Return Value
True if the animation successfully started playing.

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