ACE3/addons/arsenal/functions/fnc_getNearbyInventories.sqf

13 lines
426 B
Plaintext
Raw Normal View History

2024-02-04 17:54:33 +00:00
#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