- Joined
- Mar 13, 2008
- Messages
- 126
How can i remove death animation from a unit(including decay and everything).
I need it just for my dummy not for all units!
Tnx in advance!


I need it just for my dummy not for all units!
Tnx in advance!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Twisting Slash

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Twisting Slash (Hero)

Actions


Set Caster = (Triggering unit)


Set CasterPoint = (Position of Caster)


Set Real = 0.00


For each (Integer A) from 1 to 8, do (Actions)



Loop - Actions




Unit - Create 1 Twisting Slash Dummy for (Owner of Caster) at CasterPoint facing Default building facing degrees




Unit - Turn collision for (Last created unit) Off




Unit - Set level of Twisting Slash (Dummy) for (Last created unit) to (Level of Twisting Slash (Hero) for Caster)




Animation - Change (Last created unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 50.00% transparency




Unit - Order (Last created unit) to Orc Blademaster - Bladestorm




Set LocationOffset[(Integer A)] = (CasterPoint offset by 700.00 towards Real degrees)




Unit - Order (Last created unit) to Move To LocationOffset[(Integer A)]




Unit - Add a 3.50 second Generic expiration timer to (Last created unit)




Set Real = (Real + (360.00 / 8.00))




Custom script: call RemoveLocation(udg_LocationOffset[bj_forLoopAIndex])


Custom script: call RemoveLocation(udg_CasterPoint)
function remove_dummy takes unit dummy returns nothing
call PolledWait(1)
call RemoveUnit(dummy)
endfunction
Twisting Slash

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Twisting Slash (Hero)

Actions


Set Caster = (Triggering unit)


Set CasterPoint = (Position of Caster)


Set Real = 0.00


For each (Integer A) from 1 to 8, do (Actions)



Loop - Actions




Unit - Create 1 Twisting Slash Dummy for (Owner of Caster) at CasterPoint facing Default building facing degrees




Set dummy = (Last created unit)




Custom script: call remove_dummy(udg_dummy)




Unit - Set level of Twisting Slash (Dummy) for (Last created unit) to (Level of Twisting Slash (Hero) for Caster)




Animation - Change (Last created unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 50.00% transparency




Unit - Order (Last created unit) to Orc Blademaster - Bladestorm




Set LocationOffset[(Integer A)] = (CasterPoint offset by 700.00 towards Real degrees)




Unit - Order (Last created unit) to Move To LocationOffset[(Integer A)]




Unit - Add a 3.50 second Generic expiration timer to (Last created unit)




Set Real = (Real + (360.00 / 8.00))




Custom script: call RemoveLocation(udg_LocationOffset[bj_forLoopAIndex])


Custom script: call RemoveLocation(udg_CasterPoint)
