Name
Wait -- wait for a certain amount of time
Synopsis
Wait(time[, unit])
Function
This function waits for the time specified by time and then continues the script execution. The default unit for time is ticks. A tick is 1/50 second. So if you want to wait one second, you will have to set ticks to 50.

Starting with Hollywood 1.9 you can specify different units to make the wait more precise. The following unit types are possible:

#MILLISECONDS:
Time is in milliseconds (1/1000 second)

#SECONDS:
Time is in seconds

#TICKS:
Time is in ticks (default) (1/50 second)

You can also use the Sleep() function which will do the same as Wait() but operates in milliseconds so you save some typing.

Inputs
time
time to wait
unit
optional: specify a different time unit as listed above (defaults to #TICKS) (V1.9)
Example
Wait(200)
Wait for 4 seconds.

Show TOC