Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » :S Hostage Script help..
Re: :S Hostage Script help.. [message #349745 is a reply to message #349332] Sun, 07 September 2008 11:05 Go to previous messageGo to previous message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma:
Colonel
Ok i tried....
	if (stricmp(Data->CurrMap,"C&C_Islands.mix") == 0) {
		//Controller Hover Craft
		Vector3 hov;
		hov.X = -167.77f;
		hov.Y = 28.30f;
		hov.Z = -2.36f;

		Commands->Attach_Script(Commands->Create_Object("GDI_Hovercraft",hov),"z_Hostage_Controller","1000,2020,4,4,1");

		//Rescue Zone
		Vector3 rescueboxplace;
		rescueboxplace.X = -156.66f;
		rescueboxplace.Y = 28.24f;
		rescueboxplace.Z = 0.46f;

		Vector3 rescuezoneposSizes;
		rescuezoneposSizes.X = 5.0f;
		rescuezoneposSizes.Y = 5.0f;
		rescuezoneposSizes.Z = 5.0f;

		OBBoxClass Box;
		Box.Center = rescueboxplace;
		Box.Extent = rescuezoneposSizes;
		GameObject *Zone = Create_Zone("Script_Zone_All",Box);
		Commands->Attach_Script(Zone,"z_Hostage_Rescue_Zone","1,civ_lab_tech_01,Farmer,civ_lab_tech_03,Nun,Priest,1000");

		//Hostages
		Vector3 host1pos;
		//host1pos.X = -55.36f;
		//host1pos.Y = -203.13f;
		//host1pos.Z = 0.0f;
		host1pos.X = -153.00f;
		host1pos.Y = 45.f;
		host1pos.Z = 0.0f;
		GameObject *hosty1 = Commands->Create_Object("civ_lab_tech_01",host1pos);
		char *params = new char[128];
		sprintf(params,"1,1,100,10,2,1000,%d,2020",Commands->Get_ID(hosty1));
		Commands->Attach_Script(hosty1,"z_Hostage",params);
	}



Level loads, displays how many rescues.. but when u take the hostage to the zone .. CRASH!


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MP-SP? CO-OP?
Next Topic: melee attacks
Goto Forum:
  


Current Time: Wed Dec 04 00:43:15 MST 2024

Total time taken to generate the page: 0.00923 seconds