Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
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?]
I would use bothe of there's and by that I mean change undeadimmortals so the condition is in an if block. Put all the actions undeadimmortals has in the then block. Then put the turn off trigger in the else block. This way it takes one trigger and shuts off when building dies.
Just an extension to Xian's trigger: Here's a map with the triggers on how to make creeps spawn and also stop it when it dies. Showing you a Barracks spawning every 10 seconds. Try expermient with it on what will happen when Barracks dies, type -destroy and building will be destroy.
The one you gave is slow. Use Triggering Unit is Dead Equal to false,because Alive is just reversed from dead.
JASS:
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.