Bind

From Valve Developer Community
Revision as of 02:34, 22 September 2015 by SilentKillerFL (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a console command that lets you bind other console commands to a key.


Note:Command parameters are described inside the < and > characters.

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

See Also

Console Command List