Im creating "Charge" spell and i want it to look somehow not just oo you slide to your target and kick his balls.
How to play units animation? Ive tried:
(The unit is currently Mountain King)
he only slides and only when i did call SetUnitAnimation in both he did get his one leg to air but he freezes at that point again.
any help(The theloopone runs 50 times/sec)
Also when he finishes charging he plays attack animation even through the animation in object editor is walk and even if I reset the animation or pause the unit
How to play units animation? Ive tried:
JASS:
function theloopone takes nothing returns nothing
//blablabla
call SetUnitAnimation(u, "walk") //u is the unit
//also tried
call QueueUnitAnimation(u, "walk")
//blabla, cleaning leaks etc
endfunction
function Start takes nothing returns nothing
//blabla
call SetUnitAnimation(GetTriggerUnit(), "walk")
//blabla, cleaning leaks etc
endfunction
he only slides and only when i did call SetUnitAnimation in both he did get his one leg to air but he freezes at that point again.
any help(The theloopone runs 50 times/sec)
Also when he finishes charging he plays attack animation even through the animation in object editor is walk and even if I reset the animation or pause the unit