removing non-played units from the game

volgera

New Member
Reaction score
0
Hi guys, I got a small problem.

I placed a few units&heroes on the map for specific player colors. When those players are not playing, I want to have those units removed. Does anyone know the right trigger? I can't seem to get it right :x
 

Wratox1

Member
Reaction score
22
just check if the player is playing and then if not you pick all units owned by player and remove picked unit
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
just check if the player is playing and then if not you pick all units owned by player and remove picked unit

Code:
Event 
 Map Initialization
Conditions
Actions
 pick all players in player group (All players)
  loop do
   if (picked player) is playing == false
    pick all units owned by (Picked player)
     loop do
      remove (picked unit) from the game
 

Graviyel

New Member
Reaction score
0
Is that a boolean comparison accname? i cant find the if picked player is playing = false part, and boolean is the only one with false even in it
 

Wratox1

Member
Reaction score
22
its player slot status comparison he wrote it wrong, it should be

Code:
if (picked player) is playing
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top