Bind: Difference between revisions
Jump to navigation
Jump to search
Neo Kabuto (talk | contribs) (Added a common example and made syntax match template description) |
|||
Line 1: | Line 1: | ||
This is a [[console command]] that lets you bind other console commands to a key. | This is a [[console command]] that lets you bind other console commands to a key. | ||
---- | ---- | ||
{{syntax|bind key " | {{syntax|bind <key> <command(s)>}} | ||
{{CCExample|If you wanted to make the '''V''' key toggle [[noclip|noclipping]], you would type in console: |bind v "noclip"}} | |||
{{CCExample|If you wanted to make the '''H''' key make you say ''"Hello."'' in chat, you would type in console: |bind h "say Hello."}} | {{CCExample|If you wanted to make the '''H''' key make you say ''"Hello."'' in chat, you would type in console: |bind h "say Hello."}} | ||
{{CCExample|If you wanted to make the '''L''' key prepare | {{CCExample|If you wanted to make the '''L''' key prepare your screen for [[How To Take Screenshots|screenshots]], you would type in console: |bind l "cl_drawhud 0;crosshair 0;impulse 200"}} | ||
Quotation marks around strings are not always required, but should be used to ensure that special characters, such as spaces and semicolons, are not misinterpreted. For number-only strings, quotation marks should not be used. | Quotation marks around strings are not always required, but should be used to ensure that special characters, such as spaces and semicolons, are not misinterpreted. For number-only strings, quotation marks should not be used. | ||
[[Category:Console Commands]] | [[Category:Console Commands]] | ||
==Special Keys== | ==Special Keys== |
Revision as of 08:52, 16 December 2014
This is a console command that lets you bind other console commands to a key.
Syntax: bind <key> <command(s)>
Example: If you wanted to make the V key toggle noclipping, you would type in console: bind v "noclip"
Example: If you wanted to make the H key make you say "Hello." in chat, you would type in console: bind h "say Hello."
Example: If you wanted to make the L key prepare your screen for screenshots, you would type in console: bind l "cl_drawhud 0;crosshair 0;impulse 200"
Quotation marks around strings are not always required, but should be used to ensure that special characters, such as spaces and semicolons, are not misinterpreted. For number-only strings, quotation marks should not be used.
Special Keys
- tab
- enter
- escape
- space
- backspace
- uparrow
- downarrow
- leftarrow
- rightarrow
- alt
- ctrl
- shift
- ins
- del
- pgdn
- pgup
- home
- end
- kp_home
- kp_uparrow
- kp_pgup
- kp_leftarrow
- kp_5
- kp_rightarrow
- kp_end
- kp_downarrow
- kp_pgdn
- kp_enter
- kp_ins
- kp_del
- kp_slash
- kp_multiply
- kp_minus
- kp_plus
- capslock
- joy1-4
- aux1-31
- mwheeldown
- mwheelup
- mouse1-5
- pause