The Timeclass is used to control application time.


Sleep

Sleep

Description: Suspend the script execution during the number of specified milliseconds.

void Sleep(int fTime)

[in] fTime: Execution suspension time (in milliseconds).

Example:

// Suspend the script execution for 5 seconds and then log a message
Sleep(5000);
Print("delayed message");
  • modding/scripting/api/time.txt
  • Last modified: 14/10/2018 12:17
  • (external edit)