- Joined
- Apr 11, 2013
- Messages
- 9
i made a region for creeps to spawn from it and next to the region i made a small building , this building u must protect it from the creeps if its destroyed the creeps wont spawn again now [How i do that? any1 knows?]
|
--.--
\__/
function IsUnitDeadBJ takes unit whichUnit returns boolean
return GetUnitState(whichUnit, UNIT_STATE_LIFE) <= 0
endfunction
//===========================================================================
function IsUnitAliveBJ takes unit whichUnit returns boolean
return not IsUnitDeadBJ(whichUnit)
endfunction