x


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#.

more ▼

asked Jan 16 '12 at 02:39 AM

twoface262 gravatar image

twoface262
129 40 53 55

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

To disable FPSInputController in C# you must use:

GetComponent<FPSInputController>().enabled = false;
more ▼

answered Jan 16 '12 at 03:21 AM

aldonaletto gravatar image

aldonaletto
41.5k 16 42 197

Will this work on a network? and thanks for the reply!

Jan 16 '12 at 03:27 AM twoface262

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.

Jan 16 '12 at 05:21 AM aldonaletto
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4171
x3742
x406
x6
x3

asked: Jan 16 '12 at 02:39 AM

Seen: 706 times

Last Updated: Jan 16 '12 at 05:21 AM