Skip to content

Commit

Permalink
Merge pull request #5 from pterolatypus/bugfix/sealevel
Browse files Browse the repository at this point in the history
Set apex fitting position manually
  • Loading branch information
ampersand38 authored Sep 23, 2021
2 parents 06f6b41 + b3c9df1 commit 7e248fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/slingload/functions/fnc_rigCargo.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ if (damage _cargo == 1) then {
_cargo = _helper;
};

_apexFitting = createVehicle ["slr_slingload_apexFitting", _cargo modelToWorldVisual (boundingBoxReal _cargo # 1), [], 0, "CAN_COLLIDE"];
_apexFitting = createVehicle ["slr_slingload_apexFitting", [0,0,0], [], 0, "CAN_COLLIDE"];
_apexFitting setPosWorld (_cargo modelToWorldVisualWorld (boundingBoxReal _cargo # 1));
_apexFitting allowDamage false;
_apexFitting disableCollisionWith _cargo;
_apexFitting disableCollisionWith _unit;
Expand Down

0 comments on commit 7e248fc

Please sign in to comment.