- Joined
- Sep 26, 2009
- Messages
- 9,534
This is on the premise that RemoveUnit causes permanent leaks in memory. Users without JassHelper may simply copy the function into the top map-script.
JASS:
library DestroyUnit
function DestroyUnit takes unit target returns nothing
call UnitApplyTimedLife(target, 'BTLF', 0)
call ShowUnit(target, false)
endfunction
endlibrary
Last edited: