Problem with player left due to No internet connection

Options
I have this simple question.
I am creating a game with capture the flag mode. Everything works fine but there is a situation. What will happen when one of my player has taken the enemy flag and suddenly disvonnects from photon. Right now if he got disconnected the falg is gone with him. Please tell me a way to detect his absence and if he is carring a flag,return the flag or put flag the last place he was.
I will be very thankful.
Thanks

Answers

  • Dev
    Options
    Store a reference to the flag in a custom property. Then check to see if the player who disconnected has the property of the flag. Use the OnPhotonPlayerDisconnected callback. Hope this helps.