Lore archive · Warcraft Wiki, 2023 dump
API CharacterModelBase SetAnimation
Last wiki revision 2023-08-19
Sets the animation to be played by the model. CharacterModelBase:SetAnimation(anim [, variation])
- anim: - An animation ID
- variation: - The variation ID in the animation, when a model has more than one animation for an animation ID.
myModel:SetAnimation(60) -- Play the talking animation
- 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).
Source
https://warcraft.wiki.gg/wiki/API_CharacterModelBase_SetAnimation · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.