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.
DOWNLOAD LINK
http://rigid-soft.com/NetworkingNew.rar
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 :).
TL;DR
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 :).
UPDATE
I managed to fix it, and have uploaded a working sample (without photon network, you need to import that yourself from the asset store).