The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Input Authority

2022-07-24 23:31:39

Hello Ramon, how are you doing? We're having a problem here with InputAuthority, I was hoping you could help us.

In our game Eo, we have Dungeon Masters around the players and they need to be able to "Possess" NPCs, so they're always jumping from one NPC to the other to talk to players. So, in our NetworkPlayer, we have a method like this:

Seemed pretty straight forward to me, but we're failing here. If I comment the line oldPlayer.Object.RemoveInputAuthority() then it works but the Dungeon Master is moving both NPCs now, the one he possessed and the one he came from. The thing is, if we use the oldPlayer.Object.RemoveInputAuthority() line, something happens and the DM loses authority completely for both NPCs. Do you know what we're doing wrong here?

All the best,

Rafael at


2022-07-26 04:01:40

Curiosidade: você é brasileiro? Nosso estúdio é brasileiro :)

Back to top