- Custom script: call SetUnitAnimationByIndex (your_unit, AnimationIndex)
If I want to make an unit play the attack 2 animation when casting a spell, what should I set on (your_unit) and on (Animation_Index)? I don't know how to use custom script (I suck very hard, delicious hard with Custom Script), so if you guys can tell me EXACTLY what should I write on these lines plz :/ , would be great.
EDIT: AnimationIndex I know that is specific and different for each unit/hero in the game, but what should I put here ? a number ? a word ? what and how?
And for (your_unit) ? What and how should I write exactly my unit?
Thx