From 5ca113d0ba41c0ef08d0288646806bd4acf419ef Mon Sep 17 00:00:00 2001 From: Vdauphin <vdauphin@outlook.fr> Date: Tue, 29 Aug 2017 05:51:03 +0200 Subject: [PATCH] FIX: ace_common_fnc_loadPerson don't detect taru with place for crew (#5464) When you load somebody inside a vehicle the ace_common_fnc_loadPerson is used. This fonction acutually search nearestObjects of type ["Car", "Air", "Tank", "Ship_F"] to put player inside. Infortunatly, the taru family with crew place (exemple :"Land_Pod_Heli_Transport_04_medevac_black_F") are not detected because the corresponding parent class of "Land_Pod_Heli_Transport_04_medevac_black_F" is : ["Land_Pod_Heli_Transport_04_medevac_F","Pod_Heli_Transport_04_crewed_base_F","StaticWeapon","LandVehicle","Land","AllVehicles","All"]. To avoid this, the "Pod_Heli_Transport_04_crewed_base_F" parent class should also be search by nearestobjects. --- addons/common/functions/fnc_loadPerson.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/functions/fnc_loadPerson.sqf b/addons/common/functions/fnc_loadPerson.sqf index 59c9af2c20..ae762b82be 100644 --- a/addons/common/functions/fnc_loadPerson.sqf +++ b/addons/common/functions/fnc_loadPerson.sqf @@ -24,7 +24,7 @@ private _vehicle = objNull; if (!([_caller, _unit, ["isNotDragging", "isNotCarrying"]] call FUNC(canInteractWith)) || {_caller == _unit}) exitWith {_vehicle}; -private _nearVehicles = nearestObjects [_unit, ["Car", "Air", "Tank", "Ship_F"], 10]; +private _nearVehicles = nearestObjects [_unit, ["Car", "Air", "Tank", "Ship_F","Pod_Heli_Transport_04_crewed_base_F"], 10]; { TRACE_1("",_x);