These work together to control what happens when you press a key, from the basics like throwing a grenade to the more advanced like performing a set of commands. I will explain each in turn then how they work together. |
|
A bind "binds" a key to a particular action or alias. It takes the form bind "key" "command". In its most basic form, a bind will map a key to a TFC command. For example...
bind "v" "+gren1" binds the key v to prime your first grenade type bind "p" "say Hello" binds p to say Hello to everyone You can also bind a key to a custom command (alias) you've defined yourself. |
|
Aliases are a command or list of commands you define youself then bind a key to. They take the form of alias alias_name "alias_command_1;alias_command_2, etc" Thus, you can set up an alias to perform a list of commands, call them anything you like, then bind a key to perform that alias. Very simple but very useful. |
So, the way they work together is that you use the alias to define a list of commands, then bind a key to that alias to perform it. An alias without a bind is useless as you have no way of performing it. Thus, to set up an alias and run it with a bind you use the following syntax... |
alias alias_name "alias_command_1;alias_command_2"
bind "key" "alias_name" Thus, whenever you press key the alias_command_1 and alias_command_2 commands will be carried out. |