Search Unity

Networking on the fly

Discussion in 'Multiplayer' started by reset, Sep 2, 2009.

  1. reset

    reset

    Joined:
    May 22, 2009
    Posts:
    393
    Hi there

    Is there any reason why I could not create a network script where the server could accept a number on connections, and as each client connects to the server their model is instantiated on their computer and on the other users computers?

    Instead of, like in the network example, where the server collates a list of all expected clients, and then when the list is complete, it instantiated the models on all clients together and starts the game.

    Hope this makes sense.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    There is nothing preventing you from doing either.

    but the "wait for round" basically means that you must write the code correspondingly which means: the client does not instantiate his player object until asked by the server to do so (use an RPC for that).