[Request]: Fixed Duel Rotation

Liquidor

New Member
Reaction score
0
Hi guys,

I'm having a problem figuring out how to create a fixed rotation for "dueling" within 2 teams if a player leaves.

Here's what I got:
- 2 teams: Red (Players 1-3) / Blue (Players 4-6)
- Timer of 30 seconds.

For the sake of this example we're going to name them Red1, Red2, Red3 / Blue1, Blue2, Blue3

When the timer reaches 0:00, I want Red1 and Blue1 to trigger actions.
Timer goes back to 0:30 and again when it reaches 0:00 I want Red2 and Blue2 to trigger actions and repeat for the last 2 players (Red3 and Blue3).

That's a standard rotation and would look like this:
Red1 vs Blue1
Red2 vs Blue2
Red3 vs Blue3
...repeat

Now here comes my issue, because if Blue2 leaves the game, Red2 won't have anyone to fight and instead I want the next in the blue team to take place and then rotate blue team with just 2 players from here on:

Red1 vs Blue1
Red2 vs Blue3
Red3 vs Blue1
Red1 vs Blue3
Red2 vs Blue1
Red3 vs Blue3


I guess I'm basically looking for a way to store the players in an array/group and then just use the next in line from each team and reset a team if the team maximum is reached.

If none of this makes sense please say so and I'll try to explain once more.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top