HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about Animation

05-17-2005, 02:58 AM#1
chien86
I use this action in my trigger:

Set "MyUnit" = Arthas(Wielding FrostMourne)
Animation Play MyUnit's "Attack -1" aniation

I know Arthas has 2 kind of attack: attack -1 & attack -2
But when i test this trigger, it sometime(i think it random) play animation attack -2
I don't want MyUnit play animation attack -2, how to fix this ???
please help me !
05-17-2005, 06:31 PM#2
Anitarf
You can only play the general attack animation this way, and the game will always choose randomly when it has more of them to choose from. You should play the animation by it's index with the following code:
Code:
set MyUnit=(unit)
custom Script : call SetUnitAnimationByIndex(udg_MyUnit, 3)
This is just an example, and I don't know if the Attack 1 animation really has the index 3, you should just experiment to find that out.