HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Getting a units currently playing animation?

02-02-2007, 01:35 PM#1
zeroXD
Is it a way to get a units currently playing animation?
Just wondered... Would be usefull in some abilities.
02-02-2007, 03:33 PM#2
shadow1500
No, you can't do it directly. You can only guess, like when the EVENT_UNIT_ATTACKED is fired you know that the unit started playing his "attack" animation, when the unit's position is changing constantly you assume it is playing its "walk" animation, and when EVENT_UNIT_SPELL_CAST fires you know he is going to play his "spell" animation.
02-03-2007, 07:40 AM#3
zeroXD
Damn, thats what I though...
But another question:
Say, if a unit is attacking. Normally the units order would have ben "attack".
Is it attack also when the unit attacks when patrolling?
02-03-2007, 09:09 AM#4
Pyrogasm
No; I believe it becomes "smart", which is sort of a universal order. Idling units that have been ordered to attack move to a point, units that are auto-killing targets, creeps that attack when in the presence of player units, and a few other instances all leave the units with the "smart" order.