So I am making a map similar to zombies mode in call of duty, you are surviving wave after wave of thralls that spawn and get increased resistance and damage by 1% every wave so they get harder and harder to the point where eventually they will be unkillable, but I am having the problem where every time the last unit of the previous wave dies, the 30 second countdown starts and all player hero units that died the wave before respawn, like in zombies, but I am having trouble:
-Making the next wave spawn after the last unit from the previous wave dies,
-Respawning the dead hero units.
They both would use the same event trigger since they both happen at the same time, but when I use "Last Created Unit dies" as the trigger event, EVERY unit from that team and even in that unit group (variable) die, the next wave spawns and the player hero unit respawns... How can I make it so that after the first wave's last unit, the next wave comes, and every time after that, the hero unit respawns along with the next incoming wave?
No unfortunately, I need some kind of trigger event, I wish they had "Last Unit Added to _ dies" as an event -.- I am thinking of just scrapping this map..
So I am making a map similar to zombies mode in call of duty, you are surviving wave after wave of thralls that spawn and get increased resistance and damage by 1% every wave so they get harder and harder to the point where eventually they will be unkillable, but I am having the problem where every time the last unit of the previous wave dies, the 30 second countdown starts and all player hero units that died the wave before respawn, like in zombies, but I am having trouble:
-Making the next wave spawn after the last unit from the previous wave dies, -Respawning the dead hero units.
They both would use the same event trigger since they both happen at the same time, but when I use "Last Created Unit dies" as the trigger event, EVERY unit from that team and even in that unit group (variable) die, the next wave spawns and the player hero unit respawns... How can I make it so that after the first wave's last unit, the next wave comes, and every time after that, the hero unit respawns along with the next incoming wave?
You mean something like this? (Condition)
Assume player 15 = computer zombie player
@MaskedImposter: Go
No unfortunately, I need some kind of trigger event, I wish they had "Last Unit Added to _ dies" as an event -.- I am thinking of just scrapping this map..
put every unit into a unit group, if unit group <= 0, then next wave and respawn
@FunkyUserName: Go
Tried that, still doesn't work cause it needs an event to trigger it.
Event: unit dies
Condition: number of alive units in Unit group <= 0
Actions:
runTrigger NextWave
runTrigger RespawnHeroes
You trigger it with the unit dies event? Or if you have something against that you can periodically poll it every second or so.
@ImperialGood: Go
Hm never thought of that..