Re: Timer_Expired [message #371554 is a reply to message #371542] |
Wed, 11 February 2009 06:13 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma:
|
General (3 Stars) |
|
|
Quote: |
void MyScript::Enter(GameObject *o, GameObject *e)
{
Commands->Start_Timer();
Timer_Expired //want to call it here
{
//rest of code
}
}
|
No, not possible.
You can do this, however:
Quote: |
void MyScript::Enter(GameObject *o, GameObject *e)
{
Commands->Start_Timer(o, this, 123.123, 10);
}
void MyScript::Timer_Expired(GameObject *o, int number)
{
if(number == 10)
{
//do your stuff here
}
}
|
As for the other thing;
Kill_Enemy_Buildings_By_Team(0)
Is much better, if your server is setup for it.
|
|
|