Wowpedia
Advertisement
Wowpedia
240,442
pages

Check if the model currently displayed in the Model widget supports the animation corresponding to the given animation ID.

hasAnimation = myModel:HasAnimation(animationID);

Arguments

animationID 
Number - An animation ID

Returns

hasAnimation 
Boolean - True if the model has the animation; false otherwise

Example

modelCanPlayTalkingAnimation = myModel:HasAnimation(60); -- 60 is the animation ID for the talking animation

Patch changes

See also

Advertisement