LeaveRoom() and PlayerTTL
Options
if player call LeaveRoom then still room keep player information to rejoin for duration playerTTL set?
0
Comments
-
Hi @ashishhellotech7,
The answer is yes.
If you callLeaveRoom(willBeBack: true)
orLeaveRoom()
orDisconnect()
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.0 -
What do you mean by unexpected disconnect, is there any chance that photon disconnect without a reason.0
-
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-disconnects0 -
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.0