Use the “quit game” node in your character, level or player controller bp and connect it with an event e.g when you press “esc” it will close your game
Usually the best way to exectute common console commands is via blueprints like this:
By searching for Key Events you can pick any key you want to use and by searching for console you get the second node.
In that you can enter any console command you want to execute. (In this case EXIT for closing the standalone game.)
Also remember to SAVE your blueprint before you launch the standalone game, or it won’t work and might make you question your game dev abilities.
If this doesn’t work you can try to add a Get Player Controller node and plug its Return Value into Specific Player for the Console Command node.
Essential functionality like this really shouldn’t be this hard to acess in an engine that’s trying hard to become user friendly.
Then again UE always had its quirks in usability, but also many unique advantages that more than make up for them.
Edit: Nice to see that there finally is a quit game node, the setup I posted could still be helpfull for other console commands though.
LOL, UE4, UE4, Love you, hate you, love you, hate you…
Finally found how I can bind console key to Tab in the Project setting tab editor, but then found the whole Project settings screwed. Now I cannot save anything as default like keybinds, & calling up console…
Edit: Okay, turns out the ***‘These settings are always saved in the default configuration file, which is currently writable’ *** means that whatever you changed will be set as default (presumably after saving the project).
Either my English comprehension is poor, or its a poorly constructed sentence. Either way, its resolved. But then, why do you have set as default, & reset as defaults options on top?