Sickle
New Member
- Reaction score
- 13
The common.ai UnitAlive native shares one flaw with the rest of the IsUnitAlive methods. This flaw is that removed units are not recognised as dead immediately after removal. This incredibly short script takes care of that for you.
Yes, it makes RemoveUnit slightly slower. But what sort of psychopath calls RemoveUnit a thousand times a second? The sort that tries to be funny.
Requires vJass. Tested and confirmed to work.
Yes, it makes RemoveUnit slightly slower. But what sort of psychopath calls RemoveUnit a thousand times a second? The sort that tries to be funny.
Requires vJass. Tested and confirmed to work.
JASS:
function UnitAlive_Fix_Hook takes unit u returns nothing
call KillUnit(u)
endfunction
hook RemoveUnit UnitAlive_Fix_Hook