Binding console commands to keys

T

The Asylum

Say if I want to be able to explode myself on command during a game. Instead of havign to go into the console and take the time to type "explode" and missing all the bits flying eveywhere, can I just assign it to a key on the keyboard?
 

drp

aa
Oct 25, 2007
2,273
2,628
go in console and type this:

Code:
bind del explode

that would bind it to your 'delete' key
 

teddyruxpin

Sr. Hygiene Technician
Mar 24, 2008
83
26
I find it always best to use " around the command to prevent any errors when spaces are used in names or commands issued etc.

bind "f" "build 3"

for example would bind the 'f' key to the 'build 3' command.( Build a sentry gun)

-Teddy