Hmm, I don’t need to do that. When I’m changing the map from main menu I’m calling:
And from the map when I want to go back to main menu:
And all the players are sent to the new map be it from main menu to an “action map” or from that back to main menu.
If I’m not closing the ability for clients to find the server, then they can join when the host is in main menu (they will load MainMenu map), or if the host traveled from main menu to a new map (they will load that new map when joining), or if the host traveled from main menu to a new map, and then back to main menu (they will load MainMenu map).
In short, if I’m not closing the ability to find the server, they will be able to join and they will load whatever map the host is on at that time and that map GameState
, PlayerController
, PlayerState
are being crated and replicated to the clients.