49
edits
| Line 13: | Line 13: | ||
A 'bind' acts like a custom command for a key. It runs the assigned text as a script, which can contain a single-word command, statement, or script. | A 'bind' acts like a custom command for a key. It runs the assigned text as a script, which can contain a single-word command, statement, or script. | ||
By default, binds do not work while input is in console or in text mode. | By default, binds do not work while input is in console or in text mode. | ||
Binds have a special relationship with commands and aliases, where specially named commands will get run during special key or device states. For example, an alias named '+bob' that is bound to a key, will only get called when that key is pressed down, and if named '-bob' will get called when the key goes up. | |||
== Examples == | == Examples == | ||