HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quicker animation change?

03-24-2005, 06:00 AM#1
Lil Blue Smurf
I am using a footswitch model as a button and when a player selects it, I change animation to death, then do a short wait and change it back to stand, thus making it look like the switch has been pressed. The problem, which is somewhat minor, but bugging the hell out of me, is that it takes about .2 seconds before the animation is changed to death. The result is that there is slight delay after the click before the button looks like it is pressed. I have no wait before animation is changed, it starts off:

event:
player selects a unit
condition:
unit equal to button
action:
change (triggering units) animation to 'death'
etc
etc

so.... if there is something I can do to make the 'death' happen faster I would love the info. I messed a bit with animation - set animation speed, but that didn't seem to help. My best guess is that the unit has to complete it's current stand animation before it switches, but I really don't know.
03-24-2005, 03:02 PM#2
Vexorian
There is a way, you have to use SetUnitAnimationById , only that you would need to know how to use JASS functions and to figure the animation index of the death animation