Jump to content

Building Move After Saving In 3D Editor


LoadingSA

Recommended Posts

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:

_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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...