Shuffle teams on round start

I have a team balancing function that I can’t seem to get done with devices (1/9999 ratio)
I tried putting a maximum size on the “alone” team but it doesn’t shuffle on round restart (which could be better than doing it with code)

So I tried to do it with Verse code but whenever I try to change team by using the “AddToTeam” function, players won’t respawn to the appropriate pad.

I could use a teleport system but my “Team Settings” device won’t apply its rules back (i.e. won’t give the appropriate items)

Solutions I found :

  • I could empty my “Team Settings” and reapply giving items with code, but I don’t know if it’s a good solution since the other settings might be ignored too.
  • I can kill everybody making them respawn in their apprropriated pads but the minimum respawn time of 1s (plus animation time) doesn’t please me. (also it forces me to play with the maximum number of lives per team and I don’t like it)

I might miss something there so if anybody has an idea, I’d be glad.

1 Like

So the solution I used for this was to :

  • Set every spawn_pads to “Any” team (even if they are used for Team 1 respawn location)
  • Add short invincibility spawn time
  • Make my shuffle in Verse
  • Call AddToTeam on EVERYBODY
  • Call Teleport() on players I want to spawn somewhere else
  • Call Item Granters on both team (with “Clear Inventory” parameter)

This works because I have a spawn limit of 1, if you’re gonna be able to respawn, I guess you can do it in Verse like I did with an aditional life system I made

Also, I use Teleport() and not Respawn(), because the last one will mess up the score HUD after respawning (24.30)