The developer console is a tool that can be enabled in General Settings ("enable dev console"). Once enabled, you can bring it up in a match by pressing BACKQUOTE key on the keyboard (F1 on a Mac), and type in/enter commands.
There are various commands that can be used for testing, experimentation and troubleshooting. In addition, some commands can have arguments (follow the command with a space and then the argument).
For example, one argument that applies to any command is "q" which instructs to quit the developer console after running the command, so running die q
in the console will result in killing yourself and then exiting the console.
The developer console can be opened in any match, offline or online, but for online matches, only a subset of commands are supported, to prevent cheating.
Note: the command list will grow over time, and not everything will be documented all the time.
Command | Arguments | Online | Description |
---|---|---|---|
scrap | (Required) an integer | No | Gives the player the amount of scrap specified in the argument. You can provide an argument of max instead of an integer as a shorthand for 9999.Example: scrap 10 to give 10 scrap to the player. |
die | None | No | Kills the current player. |
diagnostics | None | Yes | Show (or hide if it's open) a window that gives various statistics about game performance. Note that the network settings won't show any data outside of debug builds, but the gameobject count and other fields can be useful for assessing framerate issues. |
hitbox | None | No | Shows/hides various hitbox and other internal data visually, useful for troubleshooting bugs. |
dna | None | No | Gives the player 10 DNA cores based on the current enemy. |
subtank | None | No | Gives the player Sub Tank #1 (if not purchased) and fills it to the max. |
health | (Required) an integer | No | Sets the health of the current player to the integer specified. |
aiattack | None | No | Makes all AIs press attack over and over again. |
aijump | None | No | Makes all AIs press jump over and over again. |
aiguard | None | No | Makes Zero AIs guard. |
aicrouch | None | No | Makes all AIs crouch. |
aistop | None | No | Makes all AIs stop doing anything. |
aikill | None | No | Kills the first AI found. |
aiswitch | (Required) an integer (Optional) a |
No | Makes the first AI found switch to weapon slot number provided as argument. An additional argument of a will also cause the AI to start attacking after the switch.Example: aiswitch 3 a to have the AI switch to the third weapon slot and fire it. |
freeze | None | No | Freezes the current player. |
hurt | None | No | Makes the current player flinch. |
checksum | None | No | Prints the checksum of the current map. |
timeleft | None | No | Reduces the remaining time to 5 seconds. |
ult | None | No | Immediately applies ultimate armor. |