In Photon, What about ownership when master client disconnects?

by modernator   Last Updated March 13, 2018 04:13 AM

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!



Related Questions






PhotonNetwork.GetRoomList is empty

Updated July 22, 2017 13:13 PM