Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Various scripting and modding questions
Re: Various scripting and modding questions [message #313395 is a reply to message #313380] Thu, 24 January 2008 18:29 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
.mp3 or .wav

void TDA_Send_Custom_Zone::Entered(GameObject *obj,GameObject *enter)
{
	if (CheckPlayerType(enter,Get_Int_Parameter("Team_ID")))
		return;
	GameObject *object = Commands->Find_Object(Get_Int_Parameter("ID"));
	int message;
	int param;
	message = Get_Int_Parameter("EnterMessage");
	param = Get_Int_Parameter("EnterParam");
	if (message)
	{
		if (!param)
		{
			param = Commands->Get_ID(enter);
		}
		Commands->Send_Custom_Event(obj,object,message,param,0);
	}
}

void TDA_Send_Custom_Zone::Exited(GameObject *obj,GameObject *exit)
{
	if (CheckPlayerType(exit,Get_Int_Parameter("Team_ID")))
		return;
	GameObject *object = Commands->Find_Object(Get_Int_Parameter("ID"));
	int message;
	int param;
	message = Get_Int_Parameter("ExitMessage");
	param = Get_Int_Parameter("ExitParam");
	if (message)
	{
		if (!param)
		{
			param = Commands->Get_ID(exit);
		}
		Commands->Send_Custom_Event(obj,object,message,param,0);
	}
}


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CLOSED well not closed butdont need no more help on this
Next Topic: CLOSED well not closed butdont need no more help on this
Goto Forum:
  


Current Time: Tue Nov 26 10:49:28 MST 2024

Total time taken to generate the page: 0.00809 seconds