HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GUI Force Unit Animation

09-17-2006, 06:58 PM#1
Siphonized
If I want the Grom Hellscream model to perform Attack 1 or 2 (doesn't matter) in GUI, how would I go along?
09-17-2006, 07:32 PM#2
Argo
Trigger:
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Animation - Play grom hellscream 0000 <gen>'s attack - 1 animation
OR
Trigger:
Animation - Play grom hellscream 0000 <gen>'s attack - 2 animation

just add in something to stop the animation
09-18-2006, 03:10 PM#3
zeroXD
Quote:
Originally Posted by Argo
Trigger:
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Animation - Play grom hellscream 0000 <gen>'s attack - 1 animation
OR
Trigger:
Animation - Play grom hellscream 0000 <gen>'s attack - 2 animation

just add in something to stop the animation

Dont work. Use a program like wc3viewer or something, then count animations from the one at top (start counting from 0) and use this custom script:
Trigger:
Custom script: call SetUnitAnimationByIndex(udg_[Variable name], [Animation Number])

EDIT: This one is for attack 1:
Trigger:
Custom script: call SetUnitAnimationByIndex(udg_Unit, 2)
And this is for attack 2:
Trigger:
Custom script: call SetUnitAnimationByIndex(udg_Unit, 8)

EDIT (again XD): Argo's stuff DOES work, but the first plays random attack anim, and the second plays the bladestorm anim (at least last time i tried)