Switch Team on Spawn

Hey everyone,

i made a Island where people got a timeframe where they can join and i want them to have them all at the same Team so they don’t damage eath other or have tools for the actual game, but it looks like the islands settings keeps pushing everyone in to different teams.
I tryed to use a teamswitcher device to switch them after they got spawned but it dosen’t work.
I also tryed to use verse and add a sleep so after they spawned it waits for half a second and then siwtches the team, but it dosen’t work eigther whitch is to me super confusing.

Is there anythin to solve this problem?

I’m remembering faintly someone setting all thier island start spawns to the same team number, which makes them spawn set to that team…hopefully

Thats cool, like a battle royal lobby, better than a mutator which feels too restricted cause you can’t use weapons.

1 Like

@4ndreDe Thank you for your report! Can you please re-post using the “New Issue” option on the Issues and Bug Reporting forums? Posts with this feature are connected directly into our development team so we can quickly get to them!

For more information, such as how to get the reference ID, please check out the article here: Using the Creative and UEFN Bug Reporting Form

I think it has to do with you having it set to dynamic, auto fill, and 2 teams. I think there may be some setting for auto balancing that could be on too, not sure but the way I handle teams is I just don’t let epics system do anything because it’s so convoluted and buggy.

I don’t know what combination of settings is going to work best but i’d go for a setup where its not auto assigning people to teams, or if it is auto assign everyone to team 1. Then have 3 teams total and manually assign players to those teams.

This code is battle tested multiple live maps, if you can’t get it working when assigning using this then its something in your settings you need to change.

   AddToTeam(Agent:agent):void=
      TeamCollection:=GameManager.GetPlayspace().GetTeamCollection()
      Teams:=TeamCollection.GetTeams()
          if (Team := Teams[3]):
              if(TeamCollection.AddToTeam[Agent,Team]):
                  Print("Added to team 3")
              else:
                  Print("Failed to Add to Team")
2 Likes

Thx, i thought i could only add players to team with there devices.
I will test it. :slight_smile: