cvar command 'wait'
cvar command 'wait'
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?
-
- Clan Member
- Posts: 118
- Joined: Wed Dec 31, 1969 7:00 pm
- Location: In front of my computer eating hot chips
-
- Clan Member
- Posts: 118
- Joined: Wed Dec 31, 1969 7:00 pm
- Location: In front of my computer eating hot chips
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:
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
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
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
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
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
or if ur lazy you can use for arming dynos after you throw it down
Code: Select all
weaponbank 5; +attack; wait 100; -attack
that's all i got for now. hope it adds something to the conversation