Creating 2vs2 room with friends

Options
Hi,

I would like to create a game mode 2vs2 with our friends. I have no idea where to start off. How can we send them notification regarding some of our friends is looking for party. I think this is probably we would have to take care of through push notification from our server and then once other player joins the room how can we create room properties so that both of us remain in the same team. Do we need to create a private room in that case or what ?

Comments

  • vadim
    Options
    Hi,

    Send team name along with room name in invitation.
    Inside room, use player properties to store team which player part of (see \Photon Unity Networking\UtilityScripts\PunTeams.cs e.g.)
    Create invisible rooms if you want to join them only by invitations. Also you may want to set room.open = false as soon as all required player joined.