Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Sets the animation to be played by the model.

CharacterModelBase:SetAnimation(anim [, variation])

Arguments[]

anim
AnimationDataEnum - An animation ID
variation
number? - The variation ID in the animation, when a model has more than one animation for an animation ID.

Example[]

myModel:SetAnimation(60) -- Play the talking animation

Details[]

  • Some models have more than one animation for a given animation ID (Blood Elf females for the talking animation for example). You can pass a variation ID to play a specific variation of the animation.
  • When the animation is over, the model stops being animated and freezes (except for looping animations).
Advertisement