Where can i write commands to be executed at when the game starts? For example set the FOV to 110.
Create an Event Begin Play node in the level blueprint and attach it to Execute Console Command.
Thanks, that works but isnt there a config file where i could do this either?
If you want to change the player camera’s FOV permanently you can set that in your player camera blueprint. You cant set it in an .ini file and you dont need coding for this.
Open this address your browser. C:\Program Files\Unreal Engine\4.0\Engine\Config
Double click BaseInput.ini
Search for
ConsoleKey=
Assign a key for use. I use upper left corner key on my keyboard which TILDE but you know.
In editor start a game, Press your key…
example
ConsoleKey="
ConsoleKey=P
ConsoleKey=O
Thanks but thats not what i wanted. I wanted the commands to execture automatically when the game loads. Jacky’s solution works fine.
This was really helpful, thanks.
Here is a screenshot:
This does not work in HTML5. I get a “Command not recognized: stat XXX”, which works just fine in Editor. Is there anything we need to do to activate the stats in HTML5?
Is it only happening with that command or any command you try to execute via blueprints?
There are 2 ways to do this from the command line. -exec= which is a list of commands to run. -ExecCmds=command 1,command 2, etc…
Which is it? -exec=
or -ExecCmds=
?
I tried the following
-ExecCmds=“stat unit, stat memory”
and it works.