From d1f343862ed896579573fe27929fdeaa5e6d970f Mon Sep 17 00:00:00 2001 From: sethduda Date: Fri, 5 Feb 2016 18:56:22 -0500 Subject: [PATCH] Adding SA_ASL_HEAVY_LIFTING_ENABLED variable that allows missions creator to disable heavy lifting Add the following to your init.sqf file to disable heavy lifting: missionNamespace setVariable ["SA_ASL_HEAVY_LIFTING_ENABLED",false,true]; Add the following to your init.sqf file to enable heavy lifting (enabled by default): missionNamespace setVariable ["SA_ASL_HEAVY_LIFTING_ENABLED",true,true]; --- .../functions/fn_advancedSlingLoadingInit.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf b/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf index 542dcca..bd4c8e6 100644 --- a/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf +++ b/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf @@ -196,7 +196,9 @@ SA_Rope_Attach_Cargo_Ropes = { [_target, [(_centerOfMass select 0) - _widthOffset, (_centerOfMass select 1) - _lengthOffset, (_centerOfMass select 2) + _heightOffset], [0,0,-1]] ropeAttachTo (_ropes select 2); [_target, [(_centerOfMass select 0) - _widthOffset, (_centerOfMass select 1) + _lengthOffset, (_centerOfMass select 2) + _heightOffset], [0,0,-1]] ropeAttachTo (_ropes select 3); - [_target, _heli, _ropes] spawn SA_Rope_Adjust_Mass; + if(missionNamespace getVariable ["SA_ASL_HEAVY_LIFTING_ENABLED",true]) then { + [_target, _heli, _ropes] spawn SA_Rope_Adjust_Mass; + }; }; }; };