Timer end on script, can be done?

My question of the day is this: is it possible to make a script including the end of a timer?
I mean: I would like to create a script which includes an action when the timer ends.
I know there's the TIMER option, but I wonder if It can be putted all in the same "package".
Something like this:
Is there a way for doing this?
Thank you very much.
I mean: I would like to create a script which includes an action when the timer ends.
I know there's the TIMER option, but I wonder if It can be putted all in the same "package".
Something like this:
- Code: Select all
if(landing==1)
{
CreateTimer("Event Actor", "takeoff", 2000);
and here some kind of if(takeofftimer==0)
{
CreateActor....
}
}
Is there a way for doing this?
Thank you very much.