Camera follow with prefab networked object

I have a scene that allows you to run a server, then allows other people to connect to it as players.

The players can independently move themselfs around the scene, however they can move out of site of the player.

Therefore I want the camera to follow the individual player, (Each player moves around the scene as per there players view).

I’ve mucked around with this, all though I can get the scene to move for my server player I cant do it for the connected player objects.

Does anyone know how to do this?

I was just going to ask for the same thing. The only tidbit of information I’ve managed to get this far is that I should use an RPC call to the player (I think?) to instantiate a camera for him/her locally. Seems reasonable and I will tinker around to see if this gets me anywhere.

Hi

My solution to this was to make the camera a child of my prefab object. The object already had player controls etc.

This worked for me, there was some fiddling around to get the camera pointing in the correct direction as the object etc, but seems to work.

I removed the scene default camera completly as it was not really needed for what I did.

Hope that helps you…

Nice one. I’m looking for that topic. I’m a newbie here. Thanks for sharing about that.


drakeweb banner designcyrus