wowpedia
Main Menu


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