Hello,
I’m trying to check if a launch parameter is set when opening my game. I use my own game launcher and I do not want the player to open the game without launching the launcher.
Here is the structure of my blueprint:
yes, simply disconnect the sting from getCommandLine to hasLaunchOption. The hasLaunchOption Node does this automatically and you can just input your string into the node it should check for. Other way I can recommend you, you can pass options to the gamemode separated with “?” (and of course you can also specify or overwrite the gamemmode on commandline) - this gives you additional possibilites to pass options to your game
The output of hasLaunchOption does not belong into the Absolute bool of openLevel. What you need is a branch. Put the returnValue into the branch, in TRUE load your level, in FALSE do what you’d like to do if wrong launch option was given.