[GUIDE] How to Use Binds - Printable Version +- Fearless Forums (https://fearlessrp.net) +-- Forum: Community & Server Information (https://fearlessrp.net/forumdisplay.php?fid=1) +--- Forum: Help & Support (https://fearlessrp.net/forumdisplay.php?fid=3) +---- Forum: Support Archive (https://fearlessrp.net/forumdisplay.php?fid=158) +---- Thread: [GUIDE] How to Use Binds (/showthread.php?tid=45719) |
[GUIDE] How to Use Binds - ArcHammer - 04-24-2014 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 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. RE: [GUIDE] How to Use Binds - Jan - 04-24-2014 Great job on creating this guide, very informative and well written. RE: [GUIDE] How to Use Binds - Floodify - 04-24-2014 Nice guide. But.. Is it possible to bind two commands to one key? RE: [GUIDE] How to Use Binds - ArcHammer - 04-24-2014 (04-24-2014, 02:55 PM)Floodify Wrote: Nice guide. No, your binds will overwrite eachother. RE: [GUIDE] How to Use Binds - yarrrs - 04-24-2014 I guess this will help someone. Well written I gotta say, good job. RE: [GUIDE] How to Use Binds - Demonic - 04-24-2014 Good job, but thought something like this is already made in USEFULL Doc's. By privatetoast http://www.fearlessrp.net/showthread.php?tid=11786 RE: [GUIDE] How to Use Binds - TheSiphon - 04-24-2014 Good guide, you should move it to the guides thread ? RE: [GUIDE] How to Use Binds - Jono - 04-24-2014 Quote:act robot -> Slowly moving arms like a robot Thought this may come in useful, as many people would also like to bind their acts. Source:- http://steamcommunity.com/sharedfiles/filedetails/?id=156747336 RE: [GUIDE] How to Use Binds - ArcHammer - 04-24-2014 (04-24-2014, 06:11 PM)Demonichell Wrote: Good job, but thought something like this is already made in USEFULL Doc's. By privatetoast http://www.fearlessrp.net/showthread.php?tid=11786PrivateToast posted that a long while ago, and it is not a tutorial, it just has some of the binds you can do, which have been updated. This is a guide to how to make binds and also a collection of them. (04-24-2014, 06:21 PM)Jono Wrote:Quote:act robot -> Slowly moving arms like a robot Thanks, Jono. I'll add that to the thread. (04-24-2014, 06:12 PM)sashow1000 Wrote: Good guide, you should move it to the guides thread ? This is where you first post guides, and if approved my an administrator, it could be moved to the Useful Docs section. I have updated the thread with the act commands, as listed if you would bind them. They're at the bottom of the list of binds you can do. RE: [GUIDE] How to Use Binds - Pawsative - 04-25-2014 (04-24-2014, 02:55 PM)Floodify Wrote: Nice guide. This used to work for me: bind H "act_dance; say hi" |