Need Help With Waves, When last unit dies next one starts

ADuckOnQuack

New Member
Reaction score
2
I need the triggers for waves so when the last unit in the wave dies the next wave begins and so on... i am confused with the variables i have currently and would like some help also i need the trigger as well as the variables! ( :
 

Shura

New Member
Reaction score
45
Trigger:
  • trigger
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Unit Group - Remove (Triggering unit) from WaveGroup
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (WaveGroup is empty) Equal to True
        • Then - Actions
          • Set TempPoint = (Center of Wave Spawn <gen>)
          • Unit - Create 10 Footman for Neutral Hostile at TempPoint facing Default building facing degrees
          • Set WaveGroup = (Units in Wave Spawn <gen> owned by Neutral Hostile)
          • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions

WaveGroup would be a Unit Group variable and TempPoint is a Point variable. Replace the Unit - Create action with whatever you want for your wave. When you spawn your first wave, make sure to add all the units into WaveGroup.
 

ADuckOnQuack

New Member
Reaction score
2
Quick Condition Question

The condition: (Wave Group is Empty) Equal to True What type of condition does this fall under, im lost, other than that im good.

Trigger:
  • trigger
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Unit Group - Remove (Triggering unit) from WaveGroup
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (WaveGroup is empty) Equal to True
        • Then - Actions
          • Set TempPoint = (Center of Wave Spawn <gen>)
          • Unit - Create 10 Footman for Neutral Hostile at TempPoint facing Default building facing degrees
          • Set WaveGroup = (Units in Wave Spawn <gen> owned by Neutral Hostile)
          • Custom script: call RemoveLocation (udg_TempPoint)
        • Else - Actions

WaveGroup would be a Unit Group variable and TempPoint is a Point variable. Replace the Unit - Create action with whatever you want for your wave. When you spawn your first wave, make sure to add all the units into WaveGroup.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top