SetPos places the object "Land_BagFence_End_F" with an ~0.5 m offset on x or y axis.
Other objects do not seem affected by the same error.
Tested in Vanilla Arma v. 2.16.151618
SetPos places the object "Land_BagFence_End_F" with an ~0.5 m offset on x or y axis.
Other objects do not seem affected by the same error.
Tested in Vanilla Arma v. 2.16.151618
testS2 = "Land_BagFence_End_F" createVehicle (getPos main1); testS2 setDir (getDir main1 + getDir testS); _pos = (main1 modelToWorld (main1 worldToModel (ASLToAGL getPosASL testS))); testS2 setPos _pos; testS2mid = "Land_BagFence_Short_F" createVehicle (getPos main1); testS2mid setDir (getDir main1 + getDir testSmid); _pos2 = (main1 modelToWorld (main1 worldToModel (ASLToAGL getPosASL testSmid))); testS2mid setPos _pos2;
Expected result (or using "_X setPosASL (AGLToASL _pos)"
Current result using setPos
the problem does not occur, when using
testS2 setPosASL (AGLToASL _pos);
to set the position instead.