Is there a way to make a steamscript wait/hold for a certain time before the next action/command gets executed?

I found the wait command and apparently it was used in TF2 scripts.

I tried using it in DotA2 but the console tells me that it does not know the command.

Is there any way around this/archiving the same outcome?

  • out of curiosity, what are you trying to accomplish with this? – char1es Dec 13 '13 at 15:56
  • @char1es i wanted to control the flow of execution since some commands are faster then others even if they were started first. – Wandang Jan 16 '14 at 16:04

wait is not a steam command, but rather a source engine console command.

DOTA2 list of commands can be found here:


Of interest is the server command "sv_allow_wait_command" which implies that "wait" can be disabled by the server.

  • i will edit my tags then. so wait is controlled by the server which means it will need sv_cheats = 1. this answer does not yet help me to get it working – Wandang Dec 13 '13 at 16:39
  • sv_allow_wait_command must be enabled (i.e. set to 1) on the server to allow clients to use wait commands in their scripts. There's no way around this - use of the wait command is often considered cheating. – Dustin Martin Jan 13 '14 at 1:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.