Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Timer_Expired
Re: Timer_Expired [message #371554 is a reply to message #371542] Wed, 11 February 2009 06:13 Go to previous messageGo to previous message
jnz is currently offline  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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Link To This Skin?
Next Topic: Script for aircrafts needed...
Goto Forum:
  


Current Time: Mon Dec 23 22:27:56 MST 2024

Total time taken to generate the page: 0.00967 seconds