2v2 map

Thunder_Lord

New Member
Reaction score
0
I made a map where each of 4 players controls one unit. It is a 2v2 style map (Two units per team) I want, when either one of the teams die (Boath units on either team) i want to wait 5 seconds, then despawn all of the remaining players and then spawn each unit for each of the 4 players again.
 

Thunder_Lord

New Member
Reaction score
0
Well, i had the map on a 1v1 version, i dont currently have the map so ill just write out the trigger

Events:
A Unit Dies
Condition:
Triggering Unit is = to Wizzard (Wizzard is the unit that each player controls)
Action:
Set "Wizzard1" = Unit Matching Condition ((Matching unit type is = to Wizzard) and (Matching unit is owned by player 1 red))
Set "Wizzard2" = Unit Matching Condition ((Matching unit type is = to Wizzard) and (Matching unit is owned by player 2 blue))
Wait 5 seconds
Pick every unit in (Wizzard1) and do (Remove picked unit)
Pick every unit in (Wizzard 2) and do (Remove picked unit)
Create 1 (wizzard) for (Player 1 red) at (Center of (Region 000)) Faceing 0 degrees
Create 1 (wizzard) for (Player 2 blue) at (Center of (Region 001)) Faceing 180 degrees


So Basicly I want this trigger modded to fit 2v2 instead of 1v1, so when boath wizzards on a team are eliminated, i need it to wait 5 seconds then remove the remaining wizzards on the enemy team and respawn all 4 wizzards at their starting points
 

Shura

New Member
Reaction score
45
Trigger:
  • trigger
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Wizard
    • Actions
      • Set isDead[(Player number of (Owner of (Triggering unit)))] = True
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 1 (Red)
              • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
          • isDead[1] Equal to True
          • isDead[2] Equal to True
        • Then - Actions
          • Your Respawning Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
              • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
          • isDead[3] Equal to True
          • isDead[4] Equal to True
        • Then - Actions
          • Your Respawning Actions
        • Else - Actions

This is a rather roundabout way of doing it. Also, this will only work as long as player 1 and player 2 are team 1 and player 3 and player 4 are team 2.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top