Re: Timer_Expired [message #371565 is a reply to message #371554] |
Wed, 11 February 2009 06:58 |
|
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
}
}
[Updated on: Wed, 11 February 2009 07:01] Report message to a moderator
|
|
|