Info
bind command
Syntax
| keycode | Key to bind, using Unity keycode names |
| command... | The console command, with parameters, to run when the key is pressed |
What it does
Binds a key so that pressing it runs a console command, parameters included. It's the fastest way to use toggles like god or fly repeatedly without reopening the console each time. The in-game help warns the bind can conflict with normal game controls, so pick keys the game doesn't already use.
Examples
Pressing G toggles god mode (once devcommands is on)
Pressing J toggles fly mode
Related commands