From 180aff031f926d1acd24d727b3a6075b2b898ccd Mon Sep 17 00:00:00 2001 From: sethduda Date: Tue, 6 Sep 2016 22:55:53 -0400 Subject: [PATCH] Fixing rope pickup action when player is above ground level Fixes issues seen when trying to pickup ropes on the USS Nimitz --- .../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 3306ea5..ca468c1 100644 --- a/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf +++ b/addons/SA_AdvancedSlingLoading/functions/fn_advancedSlingLoadingInit.sqf @@ -1011,7 +1011,7 @@ ASL_Find_Nearby_Vehicles = { private ["_nearVehicles","_nearVehiclesWithRopes","_vehicle","_ends","_end1","_end2"]; _nearVehicles = []; { - _nearVehicles append (position player nearObjects [_x, 30]); + _nearVehicles append (player nearObjects [_x, 30]); } forEach (missionNamespace getVariable ["ASL_SUPPORTED_VEHICLES_OVERRIDE",ASL_SUPPORTED_VEHICLES]); _nearVehiclesWithRopes = []; { @@ -1025,7 +1025,7 @@ ASL_Find_Nearby_Vehicles = { if(count _ends == 2) then { _end1 = _ends select 0; _end2 = _ends select 1; - if(((position player) distance _end1) < 5 || ((position player) distance _end2) < 5 ) then { + if(((getPosASL player) distance _end1) < 5 || ((getPosASL player) distance _end2) < 5 ) then { _nearVehiclesWithRopes = _nearVehiclesWithRopes + [_vehicle]; } };