Warcraft III resources & community, 2003–2006 · archived

Running specific animations

3 posts
#1

Running specific animations

Anyways, what I am trying to do is have different weapons cause different attack animations, now, that part I already have covered, my main problem is when I run the action:
"Animation - Play Animation"
I can't seem to access a specific animation, just generic ones

ie, I want animation "Attack 2", or "Attack 3", but when I put the string "Attack 2" into the animation field, it simply plays a random "Attack" animation

if it is any help, I'm trying to use the generic WOW human model from the models section
#2
Somebody posted this question not a long time ago. Just search for it, you should find it! :wink:
There are two possibilities: using stand "one", "-1" or "1" (one should work, you have to try) or using the JASS function SetUnitAnimationByIndex.
#3
wee setunitanimationbyindex() works wonderfully