How to dictate which Game Mode to launch with

Hello there, we’re currently nearing completion of a VR-enabled game that also supports traditional FPS. We have 2 Game Modes, one for playing in VR and another for FPS mode. My question is, how can we actually launch the game with one of those modes only, selectively? For example, is it possible somehow to dictate the launch parameters of the game outside of the game itself, such as by perhaps having one .exe file for launching with VR game mode, and another .exe file for launching with FPS game mode? Thank you for your time and help!

Hello ,

Yep, Creating a shortcut to your .exe and adding -vr to the end of the “Target” Field will launch your game in VR

Hello there, thanks for your response.

I think adding -vr to the end of the target field will only activate the HMD when the game launches though, correct? Our main issue is that we actually have 2 totally distinct Game Modes setup in our game, each with their own set of unique control blueprints and player pawns associated with them. Is there any way to specifically tell unreal to launch the game using one of those 2 Game Modes we have?

There is a “Get Command Line” blueprint node. So I can Imagine some logic where different modes are set up based on what is detected (String->Contains) in that output.