From a3517959b5700aa326b1e38ef48ccf9dd07f361a Mon Sep 17 00:00:00 2001 From: sethduda Date: Wed, 20 Apr 2016 15:54:47 -0400 Subject: [PATCH] Calling ASL_Rope_Set_Mass via ASL_RemoteExec --- .../functions/fn_advancedSlingLoadingInit.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf b/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf index f27f422..9435270 100644 --- a/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf +++ b/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf @@ -69,7 +69,7 @@ ASL_Rope_Adjust_Mass = { _endDistance = (_ends select 0) distance (_ends select 1); _ropeLength = ropeLength _x; if((_ropeLength - 2) <= _endDistance && ((position _heli) select 2) > 0 ) then { - [[_obj, ((_lift select 0)*0.8)],"ASL_Rope_Set_Mass",_obj,false,true] spawn BIS_fnc_MP; + [[_obj, ((_lift select 0)*0.8)],"ASL_Rope_Set_Mass",_obj,true] call ASL_RemoteExec; _originalMassSet = false; }; } forEach _ropes; @@ -78,7 +78,7 @@ ASL_Rope_Adjust_Mass = { while { _obj in (ropeAttachedObjects _heli) } do { sleep 0.5; }; - [[_obj, _originalMass],"ASL_Rope_Set_Mass",_obj,false,true] spawn BIS_fnc_MP; + [[_obj, _originalMass],"ASL_Rope_Set_Mass",_obj,true] call ASL_RemoteExec; }; };