Lobby teams or ingame teams are ultimately a matter of taste; both of them can be made working correctly.
However, for both of them, you need your own player variables. Dont use the default numbers for players, but use custom integer variables (I suggest an array) and save the player numbers of the respective players.
For in-game team choosing, you save the player number to the team and position, he chooses, obviously.
For lobby team choosing, there is a function to get the lobby team players, exactly like they were set up in the lobby. Use this function to determine the correct slot and save the players accordingly.
After setting up your custom variables either way, make sure to always use those variables instead of just the players.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Lobby teams or ingame teams are ultimately a matter of taste; both of them can be made working correctly.
However, for both of them, you need your own player variables. Dont use the default numbers for players, but use custom integer variables (I suggest an array) and save the player numbers of the respective players.
For in-game team choosing, you save the player number to the team and position, he chooses, obviously.
For lobby team choosing, there is a function to get the lobby team players, exactly like they were set up in the lobby. Use this function to determine the correct slot and save the players accordingly.
After setting up your custom variables either way, make sure to always use those variables instead of just the players.