- Home /
how toDisable the FPSInputController.
Hello, I was wondering how I would go about disabling the FPSInputController. I'm making a multiplayer game and that seems to be cuasing a problem. When the 1st player moves the 2nd player moves with it so I figure its because the FPSInputcontroller isn't disabled for the person who's networkview it is not. I've already tried GetComponent(FPSInputController).enabled = false;
but it gives me an error. What should I do? Thanks! Ps: I'm using c#.
Answer by aldonaletto · Jan 16, 2012 at 03:21 AM
To disable FPSInputController in C# you must use:
GetComponent<FPSInputController>().enabled = false;
Will this work on a network? and thanks for the reply!
I don't know much yet about networking, but it seems that you should disable all the other player's FPSInputController, and enable a network input controller script attached to them.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Not getting component properly 1 Answer
A node in a childnode? 1 Answer
Distribute terrain in zones 3 Answers
How to get script from Object with (Clone)'s script? 2 Answers