I made a Base Defense Map , where I spawn Waves that attack the Player. I added Objectives now, for killing each Wave. But now I have to set for Example Objective 1 as Complete if Wave 1 was killed.
Thats where im running in circles. I tried to put the Waves in a Group and Count the Number of Living Units each time a Unit dies. But it doesnt work properly.
Here is What I did:
Unit - Create (2 * SpawnMultiplier) Zergling for player 15 at waypoint1 using default facing (No Options)
Unit Group - Add (Created unit) to Zerg Group
Completed if Dead
Unit - Any Unit dies
General - If (Conditions) then do (Actions) else do (Actions)
1 <= EnemyWaveNumber <= 8
(Number of Living units in Zerg Group) == 0
Objective - Mark ("Objective 1" from the Global data table) as Completed
and so on...
But it doesnt work. What am I doing wrong? How to put all Units from a Wave into a Group and Complete Objective when all of the Wave dies?