Hi guys,
In my game, player could be either a Cop or a rival. I would like to implement a system to let the user choose what he would like to play with. So if a player choose to be a Cop and the max player per room Is 6, I can let 2 more cops and 3 more rivals enter the room(3 vs 3). But i don’t know if this Is possible with photon Cloud. I know I can set a game mode for each room, but here I need to know how many cops/rivals are already in a specific room to know who can join to It. At the moment I assign the role randomly. But if the user could choose the role, would be better.
Thanks for your help.
Role based matchmaking is not directly supported by Photon, so the best option is actually to let everyone pick their side in-game only. Players could set a property, which side they want to chose and when there is an overlap, you could resolve it (e.g.) by going through the actorNumbers (so the earlier one joined, the better the chance of picking the side).
For below 1000 CCU, this is probably the best option for speedy matchmaking. Player will actually play and not wait forever for the perfect match…
Alternatively, you could “abuse” the MaxPlayers setting and a room property for the matchmaking. Initially, the room would be only for team A and have that team’s MaxPlayers. When the team is complete, set MaxPlayers to the final value and let people join for the other team.
Thank you for you answer! Ok, so I was thinking about the first solution, to let the people pick their side in-game only…at the moment all the even numbers are cops (so player 0-2-4), while the odd numbers are rivals. I think that I can create a list of player, shuffle it and then assign the role randomly, so that the player who creates the room is not the cop every time…
Thank you for your help!