Photon Pun. Weapons not showing for other players in game.

Options
I started making an online fps game a while ago, but players in my game cant see each others weapons for some reason. What can I do?

Comments

  • ultra5517
    Options
    I can provide additional details.
  • Judgecrome
    Options
    you can use photonView.RPC("");
    photonView.RPC("setGun",RpcTarget.AllBuffered, 1)
    
    [PunRPC]
    void setGun(int gunID)
    {
    if(gunID==1)
    {
    playerWeaponSpr.sprite=deagleSprite;
    }
    if(gunID==2)
    {
    playerWeaponSpr.sprite=ak47Sprite;
    }
    }
    

    if you do like that you can set the guns for every game screen.