Network Camera, Player

How can I have a main scene spawn a car on another game scene with each player having own cars that can shoot. I got it so far that I can drive and shoot and a Main menu. Its just the spawning that is the tricky part. It has gone all messed up a few times cuz of multiple audio listeners and the cameras switching to the other players car…

I got a script for network rigidbodies and a connect/disconnect script and a Instantiate(spawn) script for spawning cars/players.

I’d like that each player would have a different id so that the camera would know to what car it should follow. or something like that.

I was having a similar problem when I was trying to set up a Photon cloud game. My solution was to turn off the camera in the player prefab, then turn it back on when it was instantiated. This keeps it from linking the other players cameras. You can check out the steps I ended up using here:

http://answers.unity3d.com/questions/314232/activating-a-child-object-in-c.html

Why not just have one of the scripts (or a new script) that is on a car have a variable called: playerNum, and just set it to an appropriate integer (player 1: 1, Player 2 : 2…), and make the camera find the right one.

Or an even better solution, include the camera in the car prefab so that it spawns with the right car from the start.

Hope this helps!