I encountered a problem that when the round ends, the teams move. But using this code, the player always ends up in team 1, although he is in team 2. I tried to test it in every possible way, but I couldn’t find a solution. Does anyone have any thoughts on this matter. I checked via verse there are two teams in the game
sorry for the bad explanation. Yes, there are two teams in the game, but when using this code, players always appear in the first teleporter, as if they were in team 1.
Well I don’t know what you’re doing exactly, but I’m pretty sure this is not a bug, I’m switching teams all the time in Verse and it works, maybe check your Teleporter Settings, and that the references are correct
I can definitely confirm this behaviour. I’ve been having the same issue with my round-based game. My teams switch after the end of each round (Team 1 becomes Team2, and vice versa) but the team objects doesn’t change their index/position in the TeamCollection array. In other words, if Team 1 was at Index 0 during round 1, and they switch on the next round to become Team 2, that team will still be at Index 0 in the TeamCollection array.
It’s been incredibly painful to figure out which Team object belongs to which team in the game. I still don’t have a proper solution for this.
This was reported on back in 2023, I don’t think the devs are active on the forum at this point. I’m trying to make some team balancing logic by getting the length of team one and team two’s respective arrays. But once a player leaves the match there’s a phantom player getting counted in the array returned by GetAgents. So this completely renders GetAgents nearly useless. I’m scared to even see exactly how large the array will get.
Yes, I figured, but the fact that the bug has been around since 2023 is kinda insane. I’m hoping for my needs that I can just avoid the GetAgent function entirely. Thanks for the help tho
Sorry to bother you, but I am trying to control who ends up on each team on round start, and I have my settings set to Team Size: Dynamic , Team Rotation: OFF. When I join solo it puts me on team 1 like I want, but when I join with a party member it splits us up one on each team BEFORE my verse code even runs to change/check teams. Is there any way to default everyone on round start to team 1? I’m not even sure what’s causing the game to split us up. I even tried using a team settings device with Max Initial Team Size: 0 for team 2.