- Home /
Mouselook multiplayer
Hey everyone. I am working on a multiplayer game, and so far everything is going perfectly, except for one thing: I can't look around. I am using just a regular FPC with these scripts attached to it:
Attached to camera: if(networkView.isMine){ camera.enabled = true; }else{ camera.enabled = false; }
Attached to First Person Controller: function Start() { if(!networkView.isMine) { enabled = false; } }
function Whatever() { if(networkView.isMine){ //do whatever } }
Any ideas?
Are there any errors? $$anonymous$$ake sure you have a network view on everything declared in your scripts.
I spent a lot of time trying to get this to work, and I still seem to be puzzled. I found out that the that when I have a player from the build and a player form the editor in the same game, the player from the editor can use mouslook, but the player in the build can't
If your gameObject with the script $$anonymous$$ouseLook hasn't got a networkView on it, it won't work.
Your answer
Follow this Question
Related Questions
Mouse follow on network 0 Answers
draw line between mouse and gameobject on flat plane 0 Answers
How can I save MouseLook position in this script ? 0 Answers
showing 3rdparty app display in unity3d 0 Answers