Update sling.sqf

This commit is contained in:
mrpvtdagger 2021-03-02 13:03:40 -04:00
parent 928584a46a
commit 596366b30f

View File

@ -47,19 +47,18 @@
[_cargo , _frontCorner, [0,0,-1]] ropeAttachTo (_Rope3);
[_cargo , _frontCorner2, [0,0,-1]] ropeAttachTo (_Rope4);
_pilot addAction ["Release Cargo", {
_nObject addAction ["Release Cargo", {
private ["_heli","_cargoRopes"];
if !(isNull objectParent player) then {
_heli = (vehicle player);
_heli = _this select 0;
_cargoRopes = ropes _heli;
{
ropeDestroy _x;
} forEach _cargoRopes;
{
detach _x;
[_x] execVM "MPD_SlingLoad\sling.sqf";
_pos = [_heli, 1, 5, 0, 0, 20, 0] call BIS_fnc_findSafePos;
_x setPos _pos;
} forEach attachedObjects _heli;
};
removeAllActions player;
}];
removeAllActions _heli;
},nil,1.5,true,true,"","true",8,false,"",""];
}, {}, "Sling Loading..."] call ace_common_fnc_progressBar; //I was lazy...