rotate objects

Zeehond23

Valued Member!
Hi,

How do I rotate objects (like a locomotive) so it lays on it's side rather than stand upright?
What would I add to this:

Code:
_vehicle_134 = objNull;
if (true) then
{
  _this = createVehicle ["Land_loco_742_blue", [4899.187, 6079.8657, 0.17932098], [], 0, "CAN_COLLIDE"];
  _vehicle_134 = _this;
  _this setDir -97.659218;
  _this setPos [4899.187, 6079.8657, 0.17932098];
};

thanks!
 
Here probs, if this does nothing then put it after the setpos line.

Code:
_vehicle_134 = objNull;
if (true) then
{
  _this = createVehicle ["Land_loco_742_blue", [4899.187, 6079.8657, 0.17932098], [], 0, "CAN_COLLIDE"];
  _vehicle_134 = _this;
  _this setDir -97.659218;
_this setVectorUp [0,0.1,0.01];
 _this setPos [4899.187, 6079.8657, 0.17932098];
};
 
Back
Top