Bind: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
{{syntax|bind "key" "function"}}
{{syntax|bind "key" "function"}}


'''Example:''' If you wanted to make the '''H''' key say ''"Hello."'' in chat, you would type in console: <code>bind "h" "say Hello."</code>
{{ccexample|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. 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]]

Revision as of 16:07, 24 December 2005

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


Syntax: bind "key" "function"

Template:Ccexample

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.