Building Tilting After Save

EscapeGoat

New Member
I'm trying to place a new tower at castle rog but everytime I save the change and import it into the server the tower comes in tilted very badly to one side. Here is the code I have so far:

Code:
_vehicle_1 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_Castle_Bergfrit", [11281.459, 4299.2485, 0.056658447], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
   _this setVectorUp [0,0,+0.1];
  _this setDir -23.467649;
  _this setPos [11281.459, 4299.2485, 0.056658447];
};

_vehicle_2 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_Castle_Stairs_A", [11270.856, 4301.209, -0.86050135], [], 0, "CAN_COLLIDE"];
  _vehicle_2 = _this;
  _this setDir 63.065243;
   _this setVectorUp [0,0,+0.1];
  _this setPos [11270.856, 4301.209, -0.86050135];
};

I've tried adding the setVectorUp line to right the building with little seccuess.
 
Last edited:
_this setVectorUp [0, 0, 1]; = stick it at the bottom =)

So I have to pass that line AFTER set pos?

Like this
\
_vehicle_1 = objNull;
if (true) then
{
_this = createVehicle ["Land_A_Castle_Stairs_A", [11271.229, 4301.1636, 0.59334397], [], 0, "CAN_COLLIDE"];
_vehicle_1 = _this;
_this setDir 61.916462;
_this setPos [11271.229, 4301.1636, 0.59334397];
_this setVectorUp [0, 0, 1];
};

_vehicle_4 = objNull;
if (true) then
{
_this = createVehicle ["Land_A_Castle_Bergfrit", [11281.878, 4297.7651, 1.3884645], [], 0, "CAN_COLLIDE"];
_vehicle_4 = _this;
_this setDir -28.525894;;
_this setPos [11281.878, 4297.7651, 1.3884645];
_this setVectorUp [0, 0, 1];
};
 
Back
Top