Usage

Syntax: sleep(float seconds);
Halts the script for that amount of seconds.

Explanation

sleep will stop the script from doing anything in the time given.

Note that sleep is known to stop timeouts from being called (onTimeout), and that it may cause a loss of player focus.

Example

function onCreated() {
  sleep(5);
  echo("Hello World!");
}

... Will wait 5 seconds before echoing "Hello World!"

Categories

CategoryFunctionClientside
CategoryFunctionServerside
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki