|
I have made two netowrking scripts so far. here is the first.
This was written in C#. Now here is the next, also written in C#
And I also added this code to my MouseLook script and FPS Script (JavaScript)
The only problem is that when I connect with two clients, Player1 controls player 2's character and Player2 controls Player1's. Please leave a response or help me one on one by contacting me at fiercemodz@gmail.com
(comments are locked)
|
|
Your need is documented in the official netwokring example. What you basically need is to get the 'others' controller scripts and disable them in each client, once they spawn. However this is only a small part of the whole solution, which is pretty complicated. link text
(comments are locked)
|
|
Hey, I'm not sure if you have solved this yet or not, but I had a similar problem. If yours is what mine was, all you'll need is to create a .js file and put it on the camera. This is all you need in that file. function Awake() { }
(comments are locked)
|
|
Hey. Check if setting "observed" field in your "network view" component to none (instead of a supposed Transform:GameObject that might be there, would help. there's a possibility that you want to use the networkView just for RPC calls and, by mistake, you're updating everyone's position this way. At least that's what happened to me before. So, i need to change the observed to none?
Jul 25 '11 at 03:56 PM
marf
(comments are locked)
|

I've the same problem, can you tell me how to fix it?