How would I add a unit in range function to the middle of a spell like below? would I need to make a separate function outside of this one?
Code:
function
local variables = blah blah
local unit VarLastCreatedUnit = bj_lastCreatedUnit
call stuff
[B]if
any unit comes in range of VarLastCreatedUnit
then
explode
kill
replace
endif[/B]
endfunction