mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
13 lines
426 B
Plaintext
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
|