Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Timer_Expired
Re: Timer_Expired [message #371565 is a reply to message #371554] Wed, 11 February 2009 06:58 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
RoShamBo wrote on Wed, 11 February 2009 14:13


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)
{
//rest of code
}
}





Yea the problem of this is that after the Timer_Start i use receive info of the user that entered the zone. Can i call this in this part like this than??:
void MyScript::Timer_Expired(GameObject *obj, GameObject *enter, int number)
{
   if(number == Get_Int_Parameter("TimerNumber"))
   {
         playerid = Get_ID(enter)
         //rest of code
   }
}


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Wed, 11 February 2009 07:01]

Report message to a moderator

 
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: Tue Dec 24 12:48:49 MST 2024

Total time taken to generate the page: 0.00864 seconds