#include "..\script_component.hpp"

params [["_asset", objNull, [objNull]]];

private _closestBase = [_asset] call EFUNC(common,getNearestBase);
if (isNull _closestBase) exitWith {false};

(_asset distance2D _closestBase) <= GVAR(setting_detectionRangeFromBase)