Bind Sequence
6 replies



03.07.20 12:11:50 am
Good night, I would like a help with.
I usually use binds in my game, I would like to know how I can make a bind sequence with just one key.
Example: I want to open an F2 menu, then click button three (3) and then button two (2).
I imagined the command,
" bind "x" "ServerAction2;MenuItem3;MenuItem2" "
but it did not work
can you help me?
I usually use binds in my game, I would like to know how I can make a bind sequence with just one key.
Example: I want to open an F2 menu, then click button three (3) and then button two (2).
I imagined the command,
" bind "x" "ServerAction2;MenuItem3;MenuItem2" "
but it did not work

can you help me?


CS2D doesn't support special actions like "wait" or something to deal with this. So unfortunately it's not possible to automate all kinds of interactions with bind but only a few ones.
This has never been changed (and probably won't ever be changed) because it comes with the risk that people may exploit scripting to cause harm / get huge advantages in certain situations.
OK !!!
How do I use the command "Menu Item 2" ???
I'm thinking of making a bind to open the menu and one to click on the menu.
Example:
bind "x" "ServerAction 2"
bind "c" "MenuItem 2"
bind "v" "MenuItem 3"
How do I use the command "Menu Item 2" ???
I'm thinking of making a bind to open the menu and one to click on the menu.
Example:
bind "x" "ServerAction 2"
bind "c" "MenuItem 2"
bind "v" "MenuItem 3"
@
Yu: thank you very much.
Another doubt, is there any way to save these bind so that it is executed as soon as I open the game?

Another doubt, is there any way to save these bind so that it is executed as soon as I open the game?
@
pbeloto: Yes, look inside the autoexec.cfg file in CS2D/sys/




