• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

About Animation

Status
Not open for further replies.
Level 7
Joined
Mar 22, 2010
Messages
214
I've made two spells which are different from each other, I used two animations of the hero which is Attack 1 and Attack 2. The problem is, the animation doesn't work. The two spells just get random animation Attack 1 to 3 (There are three attack animations in the model I'm using)

I set the spell animation names to
String List ( For the first spell )
- Attack
- 1

String List ( Then the other )
- Attack
- 2
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
As far as I know, setting spesific animation at Art - Animation name is not possible. You can only define that is uses attack animation, but no which attack animation for example.

What you can do is use Unit begins casting an ability event, your ability as the condtion. Then start a timer that expires after 0.00 seconds. When the timer expires, use this:
  • Custom script: call SetUnitAnimationByIndex(unit, animationIndex)
You need to set the unit and the animation index correctly.
 
Level 10
Joined
May 28, 2011
Messages
455
the animations are indexed which mean the number you set in SetUnitAnimationByIndex parameter determine which animation.

for instance.. demon hunter model... if i do this call SetUnitAnimationByIndex(Demon_Hunter_Unit, 16) will make demon hunter attack in alternate form...
 
Status
Not open for further replies.
Top