PhotonView controlling multiple FPS Controllers

Hello, I’ve been trying to make a multiplayer test using the standard FPS Controller, and photon. I’ve completed the examples in Photon, but am still having some trouble figuring this out.

The problem I have is that when I spawn more than 1 client, they control eachother.
From what I have understood, I then need to use the following code:

photonView.isMine and check if the current photon view is mine, and then re-enable “MouseLook”, and the other controlling components of the FPS Controller.

But unfortunately I’m out of luck, and am having serious troubles getting this to work.

Since I haven’t been able to find anyone that has actually done this and published a working sample, I would love if someone would just download my sample project, took a look, and if you can get it to work, explain to me what I did wrong.

This would also let the next person that gets stuck on this figure it out a LOT faster and not waste hour upon hour like I have.


If you manage to get this running (which should be very trivial to do if you know how to do this. Please explain and if possible leave some comments laying around :).


I need help with getting a FPS Controller working with Photon, I included a project. If you have the knowledge, please download it, help me, and I would be extremely grateful :).


I managed to fix it, and have uploaded a working sample (without photon network, you need to import that yourself from the asset store).

You’re definitely on the right track, and Photon is really easy once you get the hang of it. Photon actually comes with some sample scenes that demo what you’re trying to do. Check the marco polo scene, or the worker scene.

Essentially, however, you want to make sure that your Player Objects have PhotonViews. Then, in start or awake, you want to do the following:

PhotonView pv = PhotonView.Get(this);

if (pv.isMine)
    // initialize whatever you need to for the LOCAL player
    // destroy or disable things for REMOTE players