Page 1 of 1

cvar command 'wait'

Posted: Mon Nov 24, 2008 12:54 pm
by tromort
How does the cvar 'wait' work? im trying to make a script that at some part waits 15 sec. so Ill need the command wait but I wondered are the numbers after wait milli sec or has it something to do with fps?

Posted: Mon Nov 24, 2008 2:00 pm
by Geek_Geoff
There is an ET command site that I use for references and it states that it counts 'ticks.'

Sorry that this cannot be more help. In my experience, a tick can be anything, but usually a second.

Posted: Mon Nov 24, 2008 4:25 pm
by -999-
Wait is in milliseconds, so wait 1000 = 1sec

Posted: Mon Nov 24, 2008 11:58 pm
by Geek_Geoff
Thanks for clarifying that 999, because I didn't know that either.

Posted: Tue Nov 25, 2008 10:50 am
by tromort
Thx for the relpies, i also read about those ticks ;)

Posted: Mon Apr 26, 2010 10:15 pm
by ferapont
hey, some more info i found out:

the wait time actually varies depending on your frames per second, how exactly i dont know, but you can modify your fps while you are executing a wait command to make it more exact.

it seems like wait will extend what ever action you are doing:

+attack // will continue to attack until you write -attack
+attack; -attack // activates attack and deactivates it
+attack; wait 100; -attack // continues to attack for "100" then deactivates attack

but wait blows sometimes cuz it doesnt mean do one action, wait, then do another action. it means continue doing what you are doing for some time.

rambling-lets say you want to attack for 20 seconds, wait 20 seconds, then jump for 10 seconds:

Code: Select all

+attack; wait 20; -attack; wait 20; +moveup; wait 10; -moveup
but you wont be able to move for that middle wait because you are executing -attack for 20 seconds, supposedly.

soooo what is it good for? dont know but a strafe script uses it well

Code: Select all

+moveleft; wait 10; -moveleft; +moveright; wait 10; -moveright
so this moves you left for "10" then moves right "10"
or if ur lazy you can use for arming dynos after you throw it down

Code: Select all

weaponbank 5; +attack; wait 100; -attack
so bind that baby and it will whip out your pliers and arm for "100" and you wont have to hold down ur mouse button.

that's all i got for now. hope it adds something to the conversation