04-24-2014, 01:29 PM
(This post was last modified: 09-01-2022, 01:03 AM by Fearless Community.
Edit Reason: Checked Encoding
)
What are binds, and how do I use them?
This question, although paraphrased, has been asked many times when I've been around, and I thought, instead of telling every one of them, I should make this guide that (hopefully) some people might read and find useful. I will try to answer this question as best as I can.
What is it?
A bind is a term that is used when you assign a number/letter/button on your keyboard or mouse to a specific action/command. In Garry's Mod, this is done by using the Developer's Console.
Example: I press the '+' sign on my keyboard to broadcast, as president, "The laws are as follows..."
How do I do this?
How do I bind something?
Part 1 - Developer's Console
To bind a key to a command, for example, broadcasting "The laws are as follows..." you must first enable the Developer's Console.
To do so, press the Esc key and go to the Options menu. You should already be on the Keyboard tab. Click "Advanced..." and tick the box that says "Enable Developer's Console."
You can now press OK and close the options window. To bring up the console, press the tilled (~) key at the top left of your keyboard. You can bring this up even when in-game and playing, not just in the menu.
You should see a large box pop up, it may have a lot of text in it. Ignore that, and just look for the typing box at the bottom of it. Select it, and get ready to bind your command.
Part 2 - Making Your Bind
Now you must type in something to bind the key. Once you know the layout, it isn't confusing. Remember, our example is to broadcast "The laws are as follows..."
Type bind in the console. Leave a space and then put in the key you want to bind it to - for this example, I'll assign the command to the '+' sign. What you should have is this, except with whatever key you chose to assign it to.
bind +
Now you need to type what you want to make it do when you press the '+' key.
First of all, make one space after the key you chose, and put in a double quotation mark - ("). Now, for this example, I need to broadcast something, and to do that in normal chat in-game, I would type /broadcast The laws are as follows... , and bear in mind that's using the chat (default 'y') system. The console recognises you're using chat by typing say before your command. So, after the quotation marks, with no spaces, type say and then leave a space. This is what it should look like so far:
bind + "say
What that has done, is tell the console that you're saying it, which means you're using it in chat.
You're almost there! Now type what you'd normally type in chat, which is /broadcast The laws are as follows...
Then, with no spaces after that, add in the closing quotation mark (")
If you have typed that, you have done it! Just press enter, and when you're the president on Fearless, you just need to press '+' and that broadcast will be said!
Of course, you can do a lot more of these. For example, you can have all of your laws binded to certain keys, so when pressing them in order, you can broadcast all of your laws in segments without having to type a thing anymore.
The only problem is, the chat has a character limit, and when you're typing something in the console, it doesn't know that, so you may have your messages chopped off in chat if they're too long!
This layout for binding commands can be modified, for example:
bind \ "say Good morning sir, what would you like from our selection today?"
bind [ "say /y This is the ECPD! Pull over and put your hands up!"
As you can see, there are endless possibilities, and this is only using the chat box (You can even bind keys to make you jump)! You can even bind a key to spawn your car in!
bind ; "say /inventory volvo use 1"
As you can see, these are all using different keys, but if you bind a key to the same key you bound another command to, it will overwrite it. For example, if you bind W to do something, it will mean you can't move forward.
However, you can bind a key to multiple commands, but you must do it all in one line of text, if you just bind them individually they will overwrite each other. You cannot bind multiples of the same command (eg 'say') but if you do something like this:
bind [ "say Hey there!; act_dance"
It will mean, when you press the '[' key, you start to dance and say 'Hey there!'
To reset all keys to their defaults, go to the Options menu and click "Use Defaults".
If you want to unbind a certain key, for example, unbind the '+' key to broadcasting something as President, just type in the console:
unbind +
Here is the whole list of bind commands for Fearless, as accessible via the "Binds" tab in the F1 menu in-game.
Useful binds - General Commands
Here are the list of bindable keys on your keyboard/mouse etc. Please note that these are also the correct way the keys should be typed in the console.
Eg. The Page up key is written as PGUP in the console.
Bindable Keys
I hope I have covered this topic with enough detail so you realise what each bit is for, but it isn't too mindblowing and confusing for you. Thank you for taking the time to read this, and I hope you will all go away with the knowledge of this useful system.
Updated with pictures.
This question, although paraphrased, has been asked many times when I've been around, and I thought, instead of telling every one of them, I should make this guide that (hopefully) some people might read and find useful. I will try to answer this question as best as I can.
What is it?
A bind is a term that is used when you assign a number/letter/button on your keyboard or mouse to a specific action/command. In Garry's Mod, this is done by using the Developer's Console.
Example: I press the '+' sign on my keyboard to broadcast, as president, "The laws are as follows..."
How do I do this?
How do I bind something?
Part 1 - Developer's Console
To bind a key to a command, for example, broadcasting "The laws are as follows..." you must first enable the Developer's Console.
To do so, press the Esc key and go to the Options menu. You should already be on the Keyboard tab. Click "Advanced..." and tick the box that says "Enable Developer's Console."
You can now press OK and close the options window. To bring up the console, press the tilled (~) key at the top left of your keyboard. You can bring this up even when in-game and playing, not just in the menu.
You should see a large box pop up, it may have a lot of text in it. Ignore that, and just look for the typing box at the bottom of it. Select it, and get ready to bind your command.
Part 2 - Making Your Bind
Now you must type in something to bind the key. Once you know the layout, it isn't confusing. Remember, our example is to broadcast "The laws are as follows..."
Type bind in the console. Leave a space and then put in the key you want to bind it to - for this example, I'll assign the command to the '+' sign. What you should have is this, except with whatever key you chose to assign it to.
bind +
Now you need to type what you want to make it do when you press the '+' key.
First of all, make one space after the key you chose, and put in a double quotation mark - ("). Now, for this example, I need to broadcast something, and to do that in normal chat in-game, I would type /broadcast The laws are as follows... , and bear in mind that's using the chat (default 'y') system. The console recognises you're using chat by typing say before your command. So, after the quotation marks, with no spaces, type say and then leave a space. This is what it should look like so far:
bind + "say
What that has done, is tell the console that you're saying it, which means you're using it in chat.
You're almost there! Now type what you'd normally type in chat, which is /broadcast The laws are as follows...
Then, with no spaces after that, add in the closing quotation mark (")
If you have typed that, you have done it! Just press enter, and when you're the president on Fearless, you just need to press '+' and that broadcast will be said!
Of course, you can do a lot more of these. For example, you can have all of your laws binded to certain keys, so when pressing them in order, you can broadcast all of your laws in segments without having to type a thing anymore.
The only problem is, the chat has a character limit, and when you're typing something in the console, it doesn't know that, so you may have your messages chopped off in chat if they're too long!
This layout for binding commands can be modified, for example:
bind \ "say Good morning sir, what would you like from our selection today?"
bind [ "say /y This is the ECPD! Pull over and put your hands up!"
As you can see, there are endless possibilities, and this is only using the chat box (You can even bind keys to make you jump)! You can even bind a key to spawn your car in!
bind ; "say /inventory volvo use 1"
As you can see, these are all using different keys, but if you bind a key to the same key you bound another command to, it will overwrite it. For example, if you bind W to do something, it will mean you can't move forward.
However, you can bind a key to multiple commands, but you must do it all in one line of text, if you just bind them individually they will overwrite each other. You cannot bind multiples of the same command (eg 'say') but if you do something like this:
bind [ "say Hey there!; act_dance"
It will mean, when you press the '[' key, you start to dance and say 'Hey there!'
To reset all keys to their defaults, go to the Options menu and click "Use Defaults".
If you want to unbind a certain key, for example, unbind the '+' key to broadcasting something as President, just type in the console:
unbind +
Here is the whole list of bind commands for Fearless, as accessible via the "Binds" tab in the F1 menu in-game.
Useful binds - General Commands
Spoiler :
Here are the list of bindable keys on your keyboard/mouse etc. Please note that these are also the correct way the keys should be typed in the console.
Eg. The Page up key is written as PGUP in the console.
Bindable Keys
Spoiler :
I hope I have covered this topic with enough detail so you realise what each bit is for, but it isn't too mindblowing and confusing for you. Thank you for taking the time to read this, and I hope you will all go away with the knowledge of this useful system.
Updated with pictures.