mirror of
https://github.com/sethduda/AdvancedSlingLoading.git
synced 2024-08-30 17:32:12 +00:00
Fixing rope pickup action when player is above ground level
Fixes issues seen when trying to pickup ropes on the USS Nimitz
This commit is contained in:
@ -1011,7 +1011,7 @@ ASL_Find_Nearby_Vehicles = {
|
|||||||
private ["_nearVehicles","_nearVehiclesWithRopes","_vehicle","_ends","_end1","_end2"];
|
private ["_nearVehicles","_nearVehiclesWithRopes","_vehicle","_ends","_end1","_end2"];
|
||||||
_nearVehicles = [];
|
_nearVehicles = [];
|
||||||
{
|
{
|
||||||
_nearVehicles append (position player nearObjects [_x, 30]);
|
_nearVehicles append (player nearObjects [_x, 30]);
|
||||||
} forEach (missionNamespace getVariable ["ASL_SUPPORTED_VEHICLES_OVERRIDE",ASL_SUPPORTED_VEHICLES]);
|
} forEach (missionNamespace getVariable ["ASL_SUPPORTED_VEHICLES_OVERRIDE",ASL_SUPPORTED_VEHICLES]);
|
||||||
_nearVehiclesWithRopes = [];
|
_nearVehiclesWithRopes = [];
|
||||||
{
|
{
|
||||||
@ -1025,7 +1025,7 @@ ASL_Find_Nearby_Vehicles = {
|
|||||||
if(count _ends == 2) then {
|
if(count _ends == 2) then {
|
||||||
_end1 = _ends select 0;
|
_end1 = _ends select 0;
|
||||||
_end2 = _ends select 1;
|
_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];
|
_nearVehiclesWithRopes = _nearVehiclesWithRopes + [_vehicle];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user