From 8c268361986fdb5bac97ca18eace9b81ccedeaf7 Mon Sep 17 00:00:00 2001 From: Martin Michaud Date: Wed, 28 Dec 2022 16:32:56 -0500 Subject: [PATCH] Pass the correct vehicle rope index to ASL_Drop_Ropes Default rope index "0" was used, and it prevented players from attaching cargo to ropes with indices > 1. --- .../functions/fn_advancedSlingLoadingInit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf b/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf index 52ca116..c39f3ea 100644 --- a/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf +++ b/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf @@ -753,7 +753,7 @@ ASL_Attach_Ropes = { if( _objDistance > _ropeLength ) then { [["The cargo ropes are too short. Move vehicle closer.", false],"ASL_Hint",_player] call ASL_RemoteExec; } else { - [_vehicle,_player] call ASL_Drop_Ropes; + [_vehicle,_player,(_vehicleWithIndex select 1)] call ASL_Drop_Ropes; [_cargo, _attachmentPoints select 0, [0,0,-1]] ropeAttachTo (_ropes select 0); [_cargo, _attachmentPoints select 1, [0,0,-1]] ropeAttachTo (_ropes select 1); [_cargo, _attachmentPoints select 2, [0,0,-1]] ropeAttachTo (_ropes select 2);