Rust Wiki

Revision Difference

Keybinds#529145

<cat>Play.General</cat> <title>Keybinds</title> # What are keybinds all about? Keybinds allow you to add extra customisability to your controls whilst playing the game and allow you to: - Change aspects of your gameplay on the fly at the press of a button - Combine different actions into 1 or multiple buttons - Access different controls you usually are not able to unless you use the F1 console - Put your keyboard to full use and enhance your Rust experience #Creating your first keybind So you've come to the conclusion that you hate having to kill your character to respawn by pressing F1 each time and typing 'kill' as you learnt on the [commands page](https://wiki.facepunch.com/rust/F1/console) Let's make that more convenient for you! Now hit F1 whilst in-game (You don't even have to be in a server!) and type out: ```markdown bind k kill ``` Now anytime that you want to find yourself back on the respawn menu you can hit `k` and your character will drop dead like minnow out of a survival fishing trap! (Permitted that you haven't been trying to kill yourself too quickly and are on cooldown) Now anytime that you want to find yourself back on the respawn menu you can hit <key>k</key> and your character will drop dead like a minnow out of a survival fishing trap! (Permitted that you haven't been trying to kill yourself too quickly and are on cooldown) #Keybind general formula The general formula to create a keybind is as follows: ```markdown bind key action ``` #The multi-key keybind So you've realised after a while of having your basic "tap k to kill yourself" keybind that you've off'ed yourself a good few times without even meaning to resulting in gamer-rage beyond belief. Luckily you can set keybinds so multiple keys are required to perform the action, here's how we can improve the previous kill keybind: ```markdown bind [leftshift+k] kill ``` Now you'll have to hold `leftshift` (the shift key but the left one under `capslock`) and then tap `k` to kill your character which will result in a much safer hazard-free method which you won't fat-finger by accident Now you'll have to hold <key>leftshift</key> (the shift key but the left one under <key>capslock</key> ) and then tap <key>k</key> to kill your character which will result in a much safer hazard-free method which you won't fat-finger by accident #Keybind special symbols ##The semicolon ; Putting a semicolon between actions in your keybind declarations will allow you to perform multiple actions using 1 keybind setup. For example, you can have it so every time you press <key>x</key> you go forward but also sprint: (auto-run!) ```markdown bind x forward;sprint ``` or every time you open the F1 console you also open the combatlog: ```markdown bind f1 consoletoggle;combatlog ``` or every time you press j you sprint forward and jump: ```markdown bind j +forward;sprint;jump ``` ##The plus + When you add a plus symbol preceding the action in your keybind it will mean that the keybind will perform this action only whilst the buttons you've assigned are being pressed. Try the difference yourself with the two auto-run keybinds below: ```markdown bind x +forward;sprint ``` and then: ```markdown bind x forward;sprint ``` The first keybind will only make you sprint forward whilst you are holding <key>x</key> however the second keybind will make you continuously sprint forward until it is overridden with your regular walk forward bind (Most likely set to <key>w</key> ) #Unassigning keys If you've made a mistake with a keybind or simply don't want it anymore you can easily get rid of it by typing out the bind once again but instead of including an action do an empty set of quote marks as shown: ```markdown bind x "" ```