Home » Renegade Discussions » Mod Forum » Question...
Re: Question... [message #465948 is a reply to message #465856] |
Wed, 11 April 2012 15:15 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma:
|
Colonel |
|
|
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.
}
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
|
|
|
|
|
Question...
By: FeaR on Tue, 10 April 2012 01:18
|
|
|
Re: Question...
|
|
|
Re: Question...
By: FeaR on Tue, 10 April 2012 01:42
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Tue, 10 April 2012 08:16
|
|
|
Re: Question...
By: Ethenal on Tue, 10 April 2012 16:56
|
|
|
Re: Question...
|
|
|
Re: Question...
By: FeaR on Wed, 11 April 2012 01:27
|
|
|
Re: Question...
By: FeaR on Wed, 11 April 2012 09:03
|
|
|
Re: Question...
By: jlhill17 on Wed, 11 April 2012 13:40
|
|
|
Re: Question...
|
|
|
Re: Question...
By: FeaR on Thu, 12 April 2012 13:40
|
|
|
Re: Question...
By: robbyke on Wed, 18 April 2012 02:31
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Wed, 18 April 2012 08:18
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Wed, 18 April 2012 17:55
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Thu, 19 April 2012 15:31
|
|
|
Re: Question...
By: robbyke on Sat, 28 April 2012 16:19
|
|
|
Re: Question...
By: Omar007 on Wed, 18 April 2012 15:07
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Thu, 19 April 2012 18:53
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Fri, 20 April 2012 05:52
|
|
|
Re: Question...
|
|
|
Re: Question...
By: jonwil on Fri, 20 April 2012 07:14
|
|
|
Re: Question...
By: robbyke on Fri, 20 April 2012 11:07
|
Goto Forum:
Current Time: Mon Dec 23 05:39:34 MST 2024
Total time taken to generate the page: 0.00909 seconds
|