LeaveRoom() and PlayerTTL

Options
if player call LeaveRoom then still room keep player information to rejoin for duration playerTTL set?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited April 2019
    Options
    Hi @ashishhellotech7,

    The answer is yes.
    If you call LeaveRoom(willBeBack: true) or LeaveRoom() or Disconnect() or get unexpected disconnect and as long as the room is available on the server, the actor will remain inactive for the duration of PlayerTTL.
    If PlayerTTL is -1, then the inactive actor can remain indefinitely inside the room.
  • What do you mean by unexpected disconnect, is there any chance that photon disconnect without a reason.
  • Tobias
    Options
    Of course there is a chance that the connection fails. You are using the internet :)
    See: https://doc.photonengine.com/en-us/pun/v2/troubleshooting/analyzing-disconnects
  • I am not talking about that scenario, sometime what happened is, you have internet and other player also is on same network, then in a flick one of the find himself disconnected and then again connected. That scenario is dangerous, states don't reflect many of the things.