diff --git a/ACE_MPD_SlingLoad/sling.sqf b/ACE_MPD_SlingLoad/sling.sqf index 9758ade..566827f 100644 --- a/ACE_MPD_SlingLoad/sling.sqf +++ b/ACE_MPD_SlingLoad/sling.sqf @@ -53,8 +53,7 @@ [_cargo , _frontCorner, [0,0,-1]] ropeAttachTo (_Rope3); [_cargo , _frontCorner2, [0,0,-1]] ropeAttachTo (_Rope4); - _nObject addAction ["Release Cargo", { - private ["_heli","_cargoRopes"]; + [_nObject, ["Release Cargo", { private ["_heli","_cargoRopes"]; _heli = _this select 0; _cargoRopes = ropes _heli; { @@ -66,5 +65,5 @@ _x setPos _pos; } forEach attachedObjects _heli; removeAllActions _heli; - },nil,1.5,true,true,"","true",8,false,"",""]; + },nil,1.5,true,true,"","true",8,false,"",""]] remoteExec ["addAction"]; }, {}, "Sling Loading..."] call ace_common_fnc_progressBar; //I was lazy... \ No newline at end of file