Removing player from game on disconnect

Hi ya'll I'm making a game similar to Monopoly. When a player disconnects I need to return their components to the bank. How do I do this?

Answers

  • you have to store all data that you need in another player, and when he reconected you send all data by the other player.

  • Actually I don't need to rejoin the player on disconnect. I mostly need to dissolve them from the game. Is there a way to know the photon views associated with that player?

  • By default, the networked objects of a leaving player will be destroyed. Did you disable AutomaticallyCleanUpOnLeave?

    If the PhotonViews stay around, their CreatorActorNr will match the ActorNumber of the player who leaves (if said player Instantiated the objects).