Hello Everyone,
I am working on a networked game with unity and came across some trouble. I am trying to implement a match making system. I have already a game that lets multiple players connect to the main game. In my game we have mini games, i want to let each player put in a request to play a mini game with other players, so thus i need a match making system. When the player clicks play mini game, a request is sent to a php sql server which is using tables along with unique id’s of each player to organize players into teams of 3, Now i have this part all done, so the logic for separating players is done.
Now i want the sql server to send the unity network id’s of the players in a single match back to the server. I think what i need to do is call an rpc on each of those network id’s and have those players load into the same level by setting the level prefix to the same number. What i want to ask is this the right approach? does level prefix work like this? and would it be possible to use a foreach loop on the server to send rpcs to each of the players on the same match? I just want these players to appear in the same game. I have access to their unity network id’s and unique id’s which i assign myself.
I know this problem sounds a bit complex, i hope someone can help me or give me some advise. I feel ike i am close but i am missing a few steps. Any help is appreciated.
regards