Jump to content
  • 0

How to straighten buildings?


cring0

Question

I read somewhere that you can just add something to an INIT line to make a building sit level/plumb instead of leaning with the lay of the land. I can't find that information anywhere now. I'm going to keep looking, but if anyone can hit me up with the answer to this in the meantime, I'd be tickled.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Yeah that's it! How's the whole string go though, is it

_init = setVectorUp [0, 0, 1];
like as in

_vehicle_5806 = objNull;
if (true) then
{
  _this = createVehicle ["LAND_Mil_Barracks_i", [8853.4287, 16054.914, -0.13080126], [], 0, "CAN_COLLIDE"];
  _vehicle_5806 = _this;
  _this setDir 10.132349;
  _this setPos [8853.4287, 16054.914, -0.13080126];
  _init = setVectorUp [0, 0, 1];
};
Link to comment
Share on other sites

  • 0

Ah yeah, so its

_vehicle_5806 = objNull;
if (true) then
{
  _this = createVehicle ["LAND_Mil_Barracks_i", [8853.4287, 16054.914, -0.13080126], [], 0, "CAN_COLLIDE"];
  _vehicle_5806 = _this;
  _this setDir 10.132349;
  _this setPos [8853.4287, 16054.914, -0.13080126];
  _this setVectorUp [0, 0, 1];
};
Thanks guys. =]
Link to comment
Share on other sites

  • 0

So.. it worked the first time. Now it's not working. Does that need to be at the end of the vehicle statement? Does it matter what order it's in? I don't know why it would have worked the first time but now it won't. STUPID ARMA CODING! Maybe my syntax is wrong?

Link to comment
Share on other sites

  • 0

Apparently, it has to be at the end of the vehicle statement or it won't work, as I had it pasted in the above post. I had to add it back in earlier and I put it in the middle of the statement, like

_vehicle_5806 = objNull;
if (true) then
{
  _this = createVehicle ["LAND_Mil_Barracks_i", [8853.4287, 16054.914, -0.13080126], [], 0, "CAN_COLLIDE"];
  _vehicle_5806 = _this;
  _this setVectorUp [0, 0, 1];
  _this setDir 10.132349;
  _this setPos [8853.4287, 16054.914, -0.13080126];
};
and it wouldn't take.

It has to be like

_vehicle_5806 = objNull;
if (true) then
{
  _this = createVehicle ["LAND_Mil_Barracks_i", [8853.4287, 16054.914, -0.13080126], [], 0, "CAN_COLLIDE"];
  _vehicle_5806 = _this;
  _this setDir 10.132349;
  _this setPos [8853.4287, 16054.914, -0.13080126];
  _this setVectorUp [0, 0, 1];
};
Link to comment
Share on other sites

  • 0

it works fine like this. If you add it in while in the editor it puts it like this

_vehicle_5806 = objNull;
if (true) then
{
_this = createVehicle ["LAND_Mil_Barracks_i", [8853.4287, 16054.914, -0.13080126], [], 0, "CAN_COLLIDE"];
_vehicle_5806 = _this;
_this setDir 10.132349;
_this setVehicleInit "this setVectorup [0,0,0.1]";
_this setPos [8853.4287, 16054.914, -0.13080126];
};
Link to comment
Share on other sites

  • 0

it works fine like this. If you add it in while in the editor it puts it like this

_vehicle_5806 = objNull;
if (true) then
{
_this = createVehicle ["LAND_Mil_Barracks_i", [8853.4287, 16054.914, -0.13080126], [], 0, "CAN_COLLIDE"];
_vehicle_5806 = _this;
_this setDir 10.132349;
_this setVehicleInit "this setVectorup [0,0,0.1]";
_this setPos [8853.4287, 16054.914, -0.13080126];
};

Oh well hell, I didn't know you could add it in the editor. I'll have to start doing that instead. Thanks.
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...