help me making a trigger

djb4cc1o94

TH.net Regular
Reaction score
5
Hi guys i have a hero defense map with 2 teams, and it is playable in 1 team aswell, ie 5 players vs 0.

Problem is that the creeps in the other team spawn and i dont want them to spawn when the number of players (USERS) is 0 in one of the team. how can i make it? how do i check the number of players ? i hope i explained :s
 

Juggernaut

I don't know what to change it to
Reaction score
33
You have to check if slot X-Y (based on the slots you use for the other team)
Are either empty or computer controled, and then disable the trigger that creates creeps for the other team.
 

Juggernaut

I don't know what to change it to
Reaction score
33
There are conditions for that.
Create new condition > Player slot status comparison
Trigger:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is unused
      • (Player 2 (Blue) slot status) Equal to Is unused
      • (Player 3 (Teal) slot status) Equal to Is unused
      • (Player 4 (Purple) slot status) Equal to Is unused
      • (Player 5 (Yellow) slot status) Equal to Is unused
    • Actions
      • Trigger - Turn off creep spawn for team 1<gen>

However if you want that even if you put computers in the slots and it still should be unplayable then there is another condition.
Player controller comparison.
But I guess this is enough.
 
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