- Home /
Multiplayer| Attaching camera to player (if i am the owner
i have multiplayer game. i have MainCamera placed in Hierarchy, and player based on prefab. i want to attach the camera to the player and make me able to move it (by "MouseLook"), IF i'm the owner of the player prefab (isMine).
Answer by DESTRUKTORR · Aug 06, 2012 at 06:24 PM
http://unity3d.com/support/resources/example-projects/networking-example
http://download.unity3d.com/support/resources/files/MultiplayerTutorial.pdf
These should have the answers you're looking for. Ultimately, there are quite a few ways to do this, but what you want to do is assign the input to a character, not the character to an input, since it works much easier that way.
In other words, when you connect the player, add a client-side script to access and modify controls, then have that send and synchronize with the network's stuff. What you're asking about is how to go from the network view to figure out individual inputs, which there is no method for.