Jump to content

Problem with custom buildings


IReeceI

Recommended Posts

Hey guy we can get alot of our edits working , But cant get this one to work ! this is just random barracks for round cherno ect ! Can some look at it please 

 

Thinks it the first bit....

 

 if (isServer) then {
 
_vehicle_11 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [10403.337, 2269.3726, 0.15784912], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
  _this setDir 38.668072;
  _this setPos [10403.337, 2269.3726, 0.15784912];
};
 
_vehicle_2 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [10429.427, 2121.325, 0.19596574], [], 0, "CAN_COLLIDE"];
  _vehicle_2 = _this;
  _this setDir -22.493492;
  _this setPos [10429.427, 2121.325, 0.19596574];
};
 
_vehicle_3 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [10598.789, 2322.709, 2.7179718e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3 = _this;
  _this setDir 53.010384;
  _this setPos [10598.789, 2322.709, 2.7179718e-005];
};
 
_vehicle_4 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [10607.743, 2329.4026, 2.8610229e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_4 = _this;
  _this setDir 53.76075;
  _this setPos [10607.743, 2329.4026, 2.8610229e-006];
};
 
 
 
Many thanks ... HAve no way of sending whole file :(
 
Link to comment
Share on other sites

Look at this part here

_vehicle_11 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [10403.337, 2269.3726, 0.15784912], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
  _this setDir 38.668072;
  _this setPos [10403.337, 2269.3726, 0.15784912];
};

Change this

_vehicle_11 = objNull;

To this

_vehicle_1 = objNull;

It should work now. Your  "_vehicle_11 = objNull;"  was not matching your _vehicle_1 = _this;" 

 

Hope this helped ya  :rolleyes: 

Link to comment
Share on other sites

^not only that, but to make it work you need a closing bracket at the bottom =)

};
 
if (isServer) then {

_vehicle_1 = objNull;
if (true) then
  {
  _this = createVehicle ["Land_Mil_Barracks_i", [10403.337, 2269.3726, 0.15784912], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
  _this setDir 38.668072;
  _this setPos [10403.337, 2269.3726, 0.15784912];
  };

_vehicle_2 = objNull;
if (true) then
  {
  _this = createVehicle ["Land_Mil_Barracks_i", [10429.427, 2121.325, 0.19596574], [], 0, "CAN_COLLIDE"];
  _vehicle_2 = _this;
  _this setDir -22.493492;
  _this setPos [10429.427, 2121.325, 0.19596574];
  };

_vehicle_3 = objNull;
if (true) then
  {
  _this = createVehicle ["Land_Mil_Barracks_i", [10598.789, 2322.709, 2.7179718e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3 = _this;
  _this setDir 53.010384;
  _this setPos [10598.789, 2322.709, 2.7179718e-005];
  };

_vehicle_4 = objNull;
if (true) then
  {
  _this = createVehicle ["Land_Mil_Barracks_i", [10607.743, 2329.4026, 2.8610229e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_4 = _this;
  _this setDir 53.76075;
  _this setPos [10607.743, 2329.4026, 2.8610229e-006];
  };

};
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...