Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Question...
Re: Question... [message #466008 is a reply to message #465948] Thu, 12 April 2012 13:40 Go to previous messageGo to previous message
FeaR is currently offline  FeaR
Messages: 87
Registered: January 2006
Location: Netherlands
Karma:
Recruit
thnx Very Happy


Whitedragon wrote on Wed, 11 April 2012 15:15

Try something like this.
void MDB_Create_Zone::Created(GameObject *obj) {
	Vector3 Size = Vector3(4.0f,8.0f,2.0f); //Size of the script zone.
	Matrix3 Rotation(true);
	Rotation.Rotate_Z(Commands->Get_Facing(obj)); //Set the rotation of the script zone to the same as the beacon.
	OBBoxClass Box(Commands->Get_Position(obj),Size,Rotation); //Create the bounding box with the position of the beacon, and the size and rotation defined earlier.
	GameObject* Zone = Create_Zone("Script_Zone_All",Box);
	//Attach whatever script you want to the zone now.
}


 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scripts when changing character
Next Topic: C&C Hourglass Amsterdam's Red Light District Progress
Goto Forum:
  


Current Time: Mon Dec 23 06:09:30 MST 2024

Total time taken to generate the page: 0.01066 seconds