PlayerModel:FreezeAnimation

From Warcraft Wiki
Jump to navigation Jump to search

Freezes an animation at a specific animation frame on the model.

PlayerModel:FreezeAnimation(anim, variation, frame)

Arguments

anim
number : AnimationDataEnum - An animation ID
variation
number - The variation ID in the animation, when a model has more than one animation for an animation ID. Defaults to 0.
frame
number - The frame to freeze in the animation. A value of -1 will freeze at the end of the animation. Defaults to 0.

Example

myModel:FreezeAnimation(60, 0, 55) -- Freeze the talking animation at the frame 55

Patch changes

Legion Patch 7.0.3 (2016-07-19): Added.