#include "..\script_component.hpp"

params [["_base", objNull, [objNull]]];
if (_base == objNull) exitWith {""};

// get base name
private _baseName = _base getVariable ["name", ""];
// if (_baseName == "") then {
// 	_baseName = format[
// 		"near %1",
// 		text (nearestLocation [_base, ["NameCity", "NameLocal"]])
// 	]
// };

if (_baseName == "") then {
	_baseName = _base call BIS_fnc_locationDescription;
};

_baseName;