Hello guys!
I'm creating a network room with the following options:
I can't set
But I also need to be able to kick his actorID out of the room immediately (for example when the player pressed Quit button).
Could you please suggest any ways to do it?
Also as a workaround could it be possible to initially set roomOptions.PlayerTtl to 0 but then later change it to 120? I actually need PlayerTtl to be 0 only during the specific phase of my game and therefore it could work for me.
Thank you!
I'm creating a network room with the following options:
RoomOptions roomOptions = new RoomOptions();
roomOptions.MaxPlayers = 2;
roomOptions.CleanupCacheOnLeave = false;
roomOptions.EmptyRoomTtl = 120000;
roomOptions.PlayerTtl = 120000;
When a player quits the game, a new player should be able to immediately join the room. But in my case new players won't be able to join this room within 2 minutes, because roomOptions.PlayerTtl
is set to 2 minutes. From my understanding it causes the room to store the acotorID of the player that quit and during this time the room is considered full and new players can't join.I can't set
PlayerTtl
to 0 because I actually need the room to remember the player in case he looses internet connection and then tries to reconnect.But I also need to be able to kick his actorID out of the room immediately (for example when the player pressed Quit button).
Could you please suggest any ways to do it?
Also as a workaround could it be possible to initially set roomOptions.PlayerTtl to 0 but then later change it to 120? I actually need PlayerTtl to be 0 only during the specific phase of my game and therefore it could work for me.
Thank you!