Forum

> > CS2D > Scripts > 'wait' function for bind
Forums overviewCS2D overview Scripts overviewLog in to reply

English 'wait' function for bind

14 replies
To the start Previous 1 Next To the start

old 'wait' function for bind

JONY
User Off Offline

Quote
In CS1.6 there was a binding function 'wait', which waited until the last instruction ended and only then started the next instruction. Is there such function/alternative in cs2d?
The problem is that when I bind my mouse wheel like this:
1
bind mouse3 "attack2;attack2;menuselect 5"
it only does the first attack2 (this script is for fast build of Wall III in Construction mode), because there's a delay until you can do the next attack2.

old Re: 'wait' function for bind

JONY
User Off Offline

Quote
no.. that doesnt matter (I knew it, but I rechecked just now in game).
It only does the first "attack2", but not the other 2 instructions.

old Re: 'wait' function for bind

DannyDeth
User Off Offline

Quote
Tried seperating the things with commas instead of semi-colons? I think that is your problem, simply because it is only doing the first one and then finding an error, therefore skipping the rest of the code.

old Re: 'wait' function for bind

JONY
User Off Offline

Quote
No no... You have to separate commands with semi-colon, not with comma, but I've tried your method and it gives me an error: ERROR: Unknown command 'attack2,attack2,menuselect'

old Re: 'wait' function for bind

DC
Admin Off Offline

Quote
there is no command like wait and there will be no command like wait.

it's not possible to bind the building-process to keys (unless serverside lua is involved)
edited 1×, last 16.01.11 12:15:24 am

old Re: 'wait' function for bind

JONY
User Off Offline

Quote
Then it's impossible to do 'fast-build' with this script: bind "mouse3" "attack2; attack2; menuselect 5" ?
Really no alternative?

Edit: it's not building-process... Im just right clicking with wretch, then right click again to choose this tile, then select menu option 5.

old Re: 'wait' function for bind

were50
User Off Offline

Quote
- D1aMoNd_ has written
If you add a "wait" command, everyone would 1-click awp shot. Bad idea


Yea I agree. This would make snipers really cheap o.o Then after the shot they would also add a part to zoom out. I think DC thought about this and thats why he's not adding it.

old Re: 'wait' function for bind

DC
Admin Off Offline

Quote
yes, it allows you to automate certain processes too much which is pretty unfair (nearly like cheating). that's the main reason why I don't implement a wait command.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview