Usage

Syntax: function onTimeout() { }

Explanation

The onTimeout event is called when the time set by setTimer(float) expires.

Examples

function onCreated()
{
  setTimer(5);
}

function onTimeout()
{
  echo("Hello World!");
}

... Will output "Hello World!" in the RC chat (serverside) or the F2 window (clientside) after waiting 5 seconds.

function onCreated()
{
  setTimer(5);
}

function onTimeout()
{
  echo("Hello World!");
  setTimer(5);
}

... Will do the same as above, but will repeat itself every 5 seconds.

Categories

CategoryFunctionEvent

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki