Bind: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
'''bind''' is a console command that lets you attatch a function to a key. The basic set up of using '''bind''' is below: | '''bind''' is a console command that lets you attatch a function to a key. The basic set up of using '''bind''' is below: | ||
bind "key" function | bind "key" "function" | ||
---- | ---- | ||
Line 8: | Line 8: | ||
'''Example''': if you wanted to make the key '''H''' say in chat ''hi'' you would type in console: | '''Example''': if you wanted to make the key '''H''' say in chat ''hi'' you would type in console: | ||
bind "h" say | bind "h" "say hi" | ||
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. | 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. |
Revision as of 10:49, 21 December 2005
bind is a console command that lets you attatch a function to a key. The basic set up of using bind is below:
bind "key" "function"
Example: if you wanted to make the key H say in chat hi you would type in console:
bind "h" "say hi"
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.