Heres what I've got for killing it:
The unit died, but the corpse seems to vanish quickly. Its a peasant, and it dies in shallow water.
Heres what I have for rezzing it:
I want it to rez the peasant and show that animation you see when your hero rezzes at an altar/tavern. The unit isn't rezzing at all though.
JASS:
private function killUnit takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
Heres what I have for rezzing it:
JASS:
if (playersWorker[i] != null and GetUnitState(playersWorker[i], UNIT_STATE_LIFE) <= 0) then
call ReviveHero(playersWorker[i], GetUnitX(playersWorker[i]), GetUnitY(playersWorker[i]), true)
endif
I want it to rez the peasant and show that animation you see when your hero rezzes at an altar/tavern. The unit isn't rezzing at all though.