Basic tutorial 4
Binding.
In order to assign a command to a key, you have to bind a key to that command. This is done as followed:
bind key "command"
For example:
bind x "vsay hi"
The binded key in this example is x and the command is vsay hi (We will discuss the vsay command later in tutorial 5). Now if you would press x in the game, you would say hi.
The quotation marks(" ") are only obligatory if you use multiple commands for 1 bind. So this would also do:
bind key command
If you start binding more than 1 command to 1 key, then it has to be:
bind key "command1; command2"
As you can see all commands are seperated by a semicolon( ; ).
A list of all the bindable keys, can be found here.
This is how you bind a key. In the following threads we will discuss all the things you can actually bind to a key.
|