Load Gamemode with map [need help]

So I’m trying to do something (at least I think it is) kinda simple, when loading a map, is there a way I can chose a game mode to load?

so for example from a lobby/main menu:
you would pick a map, and then pick a gamemode (ex: PvP, CTF, KoTH)

I thought there would be a “load gamemode” node or something like that but I haven’t found anything like that, are there any ways of doing this?

You can override the game mode on a per-map basis in the World Settings window.

I was actually wondering if there is a way to have more than one gamemode on one level?

When you select a map and game mode via what ever menu system you create, make sure you include the game mode along with the map name:
open <MapName>?Game=<GameMode>

Normally, this would mean the entire game mode:
open MyMap?Game=/Game/Gameplay/GameMode/Deathmatch.Deathmatch_C

But if you use the GameModeClassAlias, you can shorten this (a lot) :
open MyMap?Game=DM

The GameModeClassAlias lives in DefaultGame.ini:



[/Script/Engine.GameMode]
+GameModeClassAliases=(ShortName="DM",GameClassName="/Game/Gameplay/GameMode/Deathmatch.Deathmatch_C")


So is this only possible in code or can it be bone in blueprint?

The open <MapName>?Game=<GameMode> would be a console command (there’s a console command node in BP), instead of using Open Level.

^ This.

Console command.

you have just to override the level you want to load with the desire GameMode class in the world settings at down