Binding console commands to keys

Discussion in 'Team Fortress 2 Talk' started by The Asylum, Sep 2, 2008.

  1. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    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?
     
  2. drp

    aa drp

    Messages:
    2,251
    Positive Ratings:
    2,551
    go in console and type this:

    Code:
    bind del explode
    that would bind it to your 'delete' key
     
  3. teddyruxpin

    teddyruxpin Sr. Hygiene Technician

    Messages:
    83
    Positive Ratings:
    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
     
  4. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
  5. Jazz

    Jazz L5: Dapper Member

    Messages:
    240
    Positive Ratings:
    23
    bind k "explode"

    K is my favorite key in TF2 ;]