This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!
you could use a timer ...i've used one in my provocation script.
add a timer :
[code:1]
new InternalTimer(/*x parameter if Internal Timer want it*/ ).Start();
[/code:1]
after you must create a class internal timer
[code:1]
private class InternalTimer : Timer
[/code:1]
with :
[code:1]
public InternalTimer(/* x parameter if you want*/) : base( TimeSpan.FromSeconds( 2.0 ) )
{}
[/code:1]
and overload the onTick (for example in Sphere the @Timer)
[code:1]
protected override void OnTick()
{
//whath you want to do
}
[/code:1]