Search Unity

Server/Client Question

Discussion in 'Scripting' started by mehware, Dec 22, 2007.

  1. mehware

    mehware

    Joined:
    Nov 19, 2007
    Posts:
    739
    when I run a surver, and then run a client and the client see the server and I connect to it everything is great. When I connect to the server I instantiate a prefab using Network.Instantiate(...). The server can control this object and the client can view it, but this doesnt happen the other way around where the client can control the object and the server views it. Is it because only one object can be controlled by one person or who has control would be confused. Sorry for my typing its late!

    My Unity trial license ran out and I bought it, I am officially a Unity3D member!
     
  2. mehware

    mehware

    Joined:
    Nov 19, 2007
    Posts:
    739
    I played with Network.Instantiate() some more. I am confused how it (the prefab, object) gets assigned to the server or the client tho. Is this based on group?