jackall
You can change this now in User CP.
- Reaction score
- 37
Hello again, i've made the below function that is supposed to replace doodads which it really does but i want to know what YOU think of it:
Does it have leaks?
Is it useful for anything? and so on
So? Watch'a think?
Does it have leaks?
Is it useful for anything? and so on
JASS:
function ReplaceDoodad takes destructable toRe, integer newID, real scale, integer var, boolean oldHP returns nothing
local destructable newOne
if oldHP == true then
if GetDestructableLife(toRe) > 0 then
set newOne = CreateDestructable(newID,GetDestructableX(toRe),GetDestructableY(toRe),GetRandomDirectionDeg(),scale,var)
call RemoveDestructable(toRe)
return
endif
set newOne = CreateDeadDestructable(newID,GetDestructableX(toRe),GetDestructableY(toRe),GetRandomDirectionDeg(),scale,var)
call RemoveDestructable(toRe)
endif
endfunction
So? Watch'a think?