Search Unity

Third Party Photon Enable Components Problem

Discussion in 'Multiplayer' started by vh1994, Sep 2, 2015.

  1. vh1994

    vh1994

    Joined:
    Jun 17, 2015
    Posts:
    5
    Hello

    I have a problem, when i spawn my player it's enabling scripts on the Local player only, however the remote player it's scripts are enabled but not visible in the hierachi.

    But i need the scripts to be enabled on the remote player also because i have had this issue before and i fixed it, so both remote and local players had their scripts enabled in the hierachi. But somehow ive changed something and the problem is back. and i dont know which script is causing it if it's a script at all.

    I was hoping to get some help here and maybe find my answer.
     
  2. vh1994

    vh1994

    Joined:
    Jun 17, 2015
    Posts:
    5
    EDIT: The reason i have to enable the scripts on the remote player is because i have to call a rpc function on a script that shows the player weapon to everyone. but on only 1 player the weapon is enabled (the local player) but the remote player only has the weapon visible for himself.
     
  3. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,067
    I am not sure if I get the question correctly.
    If you have a script on a prefab that should be active for all clients, enable it on the prefab.