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?
Kilrogg
(Kilrogg)
September 22, 2016, 12:55pm
2
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?
Kris
(Kris)
September 26, 2016, 4:01am
4
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?
Kilrogg
(Kilrogg)
September 26, 2016, 5:15pm
6
The open <MapName>?Game=<GameMode> would be a console command (there’s a console command node in BP), instead of using Open Level.
Appi72020
(Appi72020)
April 29, 2024, 10:12pm
8
you have just to override the level you want to load with the desire GameMode class in the world settings at down