When a player left the game...

italocolt

New Member
Reaction score
1
How I make one trigger that when one player left the game, remove all unit, heroes, all then are of the leaving player.
 

Shura

New Member
Reaction score
45
Trigger:
  • trigger
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Trigger - Add to trigger 2 <gen> the event (Player - (Player((Integer A))) leaves the game)


Trigger:
  • trigger 2
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
 

italocolt

New Member
Reaction score
1
Trigger:
  • trigger
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Trigger - Add to trigger 2 <gen> the event (Player - (Player((Integer A))) leaves the game)


Trigger:
  • trigger 2
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game


Thanks, =P
I knew you would answer me named because it:
Current Activity: Replying Thread When a player left the game...
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Something like this should work ;)

Trigger:
  • Destroy after Leave
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
    • Conditions
    • Actions
      • Set TempGroup = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_TempGroup)
 
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