ACE3/addons/arsenal/functions/fnc_getNearbyInventories.sqf
2024-02-04 14:54:33 -03:00

13 lines
426 B
Plaintext

#include "..\script_component.hpp"
if !(GVAR(enableInventoryEditing)) exitWith {[]};
private _typesToSkip = ["CAManBase", "WeaponHolder"];
(GVAR(center) nearSupplies 10) select {
private _object = _x;
_object != GVAR(currentBox) &&
{_typesToSkip findIf {_object isKindOf _x} == -1} &&
{[GVAR(center), _x] call EFUNC(common,canInteractWith)} &&
{GVAR(vehicleMap) set [hashValue _x, _x]; true}
} // return