Is it possible to put quotes inside quotes in the Source developer console? For instance, is it possible to bind
bind KP_END "give weapon_357"
to KP_INS
?
bind KP_INS "bind KP_END "give weapon_357""
returns a syntax error.
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.
Sign up to join this communityIs it possible to put quotes inside quotes in the Source developer console? For instance, is it possible to bind
bind KP_END "give weapon_357"
to KP_INS
?
bind KP_INS "bind KP_END "give weapon_357""
returns a syntax error.
You cannot nest quotes in console commands. I'm not sure if there is a way to escape them, but you can work around this limitation by aliasing the quoted command. For example, in your case:
alias givewpn "give weapon_357"
Then do:
bind KP_INS "bind KP_END givewpn"
And voilĂ , the second command doesn't require quotes anymore.
"bind""f11""toggleconsole
is a valid bind command.
– a cat
Jan 10 '14 at 20:12
There is no way to escape double-quotes, but you can create a CFG (valve wiki) file, for example, cfgFileName1.cfg
in gameFolder\cfg
with contents bind KP_END "give weapon_357"
and now
bind KP_INS "exec cfgFileName1"
for better organizing use alias command (use unique aliases!)
Just bind straight to KP_INS
. That should work. There is no point have a bind within a bind. I not to sure on the situation but by the looks of it what I said should work.
Just do:
bind KP_INS "give weapon_357"
I know from csgo and soruce that all you have to do is that and it'll work. Even if there was a previous bind on that key it should replace it with the new bind.