Pyrogasm
There are some who would use any excuse to ban me.
- Reaction score
- 134
My point is that even the method that I posted above still uses Custom Value.
^bumper
No interest? What a pity
function FadeUnit takes nothing returns nothing
local unit whichUnit = bj_lastCreatedUnit
local integer trancparency = 100
if ( whichUnit == null ) then
return
endif
loop
set trancparency = trancparency - 1
call SetUnitVertexColor(whichUnit,100,100,100,trancparency)
call TriggerSleepAction(.1)
exitwhen trancparency <= 0
endloop
set whichUnit = null
endfunction
Actions
Custom script: call ExecuteFunc("FadeUnit")
Loop - Actions
Wait 0.01 seconds
Unit - Create 1 HomningBlade DUMMY for (Owner of HB_Caster) at (Position of HB_SUNIT) facing Default building facing degrees
Animation - Change (Last created unit)'s animation speed to 40.00% of its original speed
Unit - Turn collision for (Last created unit) Off
[B]Custom script: call ExecuteFunc("FadeUnit")[/B]
Nope.>Sooda
If I use execute func, can I still put arguments in it?
function RemoveUnitTimed takes unit u, real wait returns nothing
call TriggerSleepAction(wait)
call RemoveUnit(u)
endfunction
function ...
local unit d = CreateUnit(Player(15),039;hfoo039;,0,0,0)
call RemoveUnitTimed.execute(d,5)
set d = null
endfunction