Sure
PHP Code:
function onCreated()
{
this.var = "foo";
scheduleEvent( 3, "change", "bar");
onTimeout();
}
function onTimeout()
{
this.chat = this.foo;
setTimer( 0.05);
}
function onChange( temp.var)
{
this.foo = temp.var;
if ( temp.var == "bar")
scheduleEvent( 3, "change", "baz");
}
When created it will show 'foo' for three seconds then 'bar', then after another three seconds 'baz'. ScheduleEvent does not interupt the current script, which can come in very handy when using a timeout loop.