Skip to main content
edited title
Link
modernator
  • 1.2k
  • 2
  • 19
  • 48

In Photon, What abouthappens networked GameObject's ownership when master client disconnects?

Source Link
modernator
  • 1.2k
  • 2
  • 19
  • 48

In Photon, What about ownership when master client disconnects?

I'm creating multiplayer game with Photon. When player disconnects, especially master client does, every GameObject instantiated from Master client is gone, so I can prevent with this:

PhotonNetwork.autoCleanUpPlayerObjects = false;

Now GameObjects are still there even Master is gone, but what about their ownership? I needed to destroy some of enemies when they dies, but if master is gone and other player got selected as Master, is he automatically receive ownership of them too?

If not, is there a way to do that automatically? Any advice will very appreciate it!