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.
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.
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.