event.wait_should_exit(timeout)

Pause the script for a specified period of time before continuing.

timeout

Time in milliseconds for the routine to wait before continuing.

If a project role is stopped while waiting in this routine, a non-zero value will be returned to allow the script to perform any cleanup that might be required before exiting.

If zero is specified, the script will continue immediately.

This argument is optional.

Note: If this argument is omitted, the routine will wait indefinitely for an input to change.

See also

event.wait(timeout)

event.wait_input_change ([timeout])

event.wait_input_should_exit([timeout])