How can I make my session invisible when match start?

Hello! I want to lock my game session for new players (and turn the session invisible in lobby).
I’d already make a script to destroy player those enter in match when players amount don’t match with player array. I just want turn that’s session invisible in lobby.

I’m using EIK plugin, and Unreal 5.3.2

Thanks for everything!

The GameMode has full control of which players (player controllers) it allows into the game.
You can simply have a flag in the GameMode for whether it allows any additional players to connect, and when the flag is set, don’t allow players to spawn.

For example, you can override AGameModeBase::Login() to reject the player.

1 Like

Interesting! I don’t knew about that. But, host’s session will still accessible in lobby. How can I make that’s session invalid or invisible in lobby UI?

That depends on what lobby system you’re using. Presumably you’re calling some function to list the session with the lobby, I’d assume that system has a function to unlist the session.