Wait (script event)

Game class

This event operates on an instance of the game class type idThread , accessible via sys identifier.

Description

Suspends execution of the current thread for the given number of seconds.

Usage

void wait( float time )

Parameters

  • [time] - The duration in seconds to suspend execution.

Examples

 
sys.wait(5);

Notes

time parameter values less than one game frame are not recommended. See threads for more information.