Load a map with specific Game mode

How would one go about loading a level and choose the gamemode it uses? Similar to how ShooterGame does it with its FreeForAll and TDM game modes. The maps themselves show TDM as the override but it is loaded somewhere in code. I’ve tried the ?game=MyGameMode option at the end of the map URL but that doesn’t seem to make any difference.

I’m not sure if I understood your question correctly, but if you’re trying to change the default game mode or map, you can do it by going to Edit >> Project Settings >> Project >> Maps & Modes >> Default Maps/Default Modes and setting the default map and default game mode from the dropdown settings.

I know about changing the default game mode but what I was looking for is similar to ShooterGame. You can play either map in either FreeForAll or TeamDeathMatch which are two separate game modes. Thanks for the response though.

Hit the Blueprints button and set the World Override to your game mode. This override is different for each map.

I’m not sure how you’d have the users select different modes for each map. You probably need to drive your own map and mode loading UI.

1 Like