You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Michael Dearman edited this page Apr 15, 2017
·
2 revisions
Before a command can be executed, it first needs to be declared in the create event for obj_console.
One of the handiest features of the developer console is auto executing commands. If you frequently need to execute a bunch of commands when you start your game, it can be a chore to type them all out every time. Instead you can create a text file with all the commands you wish to execute, which will then be read when you run your game.
Create a new text file called autoexec.cfg in your game's build folder (if testing your game on Windows, you can find this folder by entering %localappdata% into the address bar in Windows Explorer).
You can enter commands you wish to executed in this file. Each command should be put on a new line, and should be formatted as expected by the console: