PDA

View Full Version : Playing Certain Animations Via Triggers


akrep_ve_su
11-17-2009, 06:23 PM
Some animations have a problematic side. For example; i make a hero with Infernal model and add him Breath Of Fire ability. When i trigger it to play "Stand - 2" animation during spellcast, hero just plays a random "Stand" animation; not the second one. How do we get rid of this sitiuation?

TriggerHappy
11-17-2009, 06:58 PM
Not tested, but it should play Stand 2 and Stand Alternate.


Custom script: call AddUnitAnimationProperties(udg_YourUnit ,"2",true)
Animation - Player YourUnit's Stand Animation.
Custom script: call AddUnitAnimationProperties(udg_YourUnit ,"Alternate",true)
Animation - Player YourUnit's Stand Animation.

MortAr
11-17-2009, 09:15 PM
Why use triggers? Theres a field in the Object Editor "Art - Animation Names", just put the specific animation you want the unit to play when using the ability.

For example, if you want it to play Stand - 2, type "Stand,2" with the comma.