How can I run commands when I launch the game?

Hi guys,

I want to run some commands automatically when I launch the game. I don’t want to input them every time from console. Is there any way to achieve it, like ConsoleVariables.ini? Thanks!


It would be nice if there was something like that, in an .ini file already. (I’m not sure it doesn’t exist already)

I don’t know if it’s possible, but a workaround is to call the “execute command” node from the “begin play” inside a level blueprint and call whatever command you want.

or even in a gamemode blueprint I guess.

You can even make your own class that gets the variable values from a config file and calls “execute command” using those variables: