Jump to content
  • 0

[solved]Binding a command with parameters to a key as player


Mini-Me

Question

Short question:

Is there any way to bind a command with a parameter to a key from the ingame console or the chat? Similar to:

/bind c "spawncar 520" 

... which of course does not work, otherwise I wouldn't be asking ;). This only binds the command "spawncar" to the key.

I'm afraid though that the answer is going to be no :(.

Edited by Guest
Link to comment

5 answers to this question

Recommended Posts

  • 0

No, these commands:

bind 5 spawncar 520 
bind 5 down spawncar 520 
bind 5 down "spawncar 520" 

all output:

* Bound key '5' 'down' to command 'spawncar'

And:

bind 5 "down" "spawncar 520" 

Outputs:

* Bound key '5' 'down' to command '"down"'

EDIT: Uh, yeah. It works with the non-Num 5... but still the response of the console is misleading as far as I see it.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...