mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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.
This commit is contained in:
parent
4afcc546e7
commit
5ca113d0ba
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user