Search Unity

Sockets and instances

Discussion in 'Multiplayer' started by LayZ1307, Oct 7, 2021.

  1. LayZ1307


    Aug 14, 2021
    If I had two players ready to join a game from a lobby I created.

    And I wanted to launch them both into an instance of a scene (like a 2v2 scene).

    It isnt as simple as sending them both into a scene... It's an rts and I'm thinking of making it p2p (although there should have been reasons for a vps/dedicated server). So for p2p i would have to do something like launch the first player in as a host and then the second player in as a client.... while its also an instance of the scene for these two players.

    Coding the server/headless side to make an instance for players to spawn in is kind of ambiguous and I have yet to find any documentation on doing so. I'm going to be looking into the unity mlapi demos soon, and plan on using mlapi or mirror.