Bind

From Valve Developer Community
Revision as of 23:10, 21 December 2005 by Bwmathis (talk | contribs) (Consistency, removed pointless bind link)
Jump to navigation Jump to search

This is a console command that lets you bind other console commands to a key. The basic syntax for bind is: bind "key" "function"


Example: If you wanted to make the H key say "Hello." in chat, you would type in console: bind "h" "say Hello."

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.