Problem with guns

Options
Hi everyone! I'm encountering a problem with guns in my game. It is a FPS and I use a camera to render everything and a second camera that only see the gun and draw it over everything. The problem is that when other players connect, they see the guns through everythings (characters, walls, ...) and there are guns floating in th map. How do we fix that?

Thank you!

Comments

  • Steeven
    Options
    I partly solved my problem by putting my gun on default layer and changiing it on layer gun in my script. If photonView.isMine I change the gun to the layer gun, but the master client change is gun layer on every client and the clients don't change the layer. I don't know if I am clear.