big refactor, WIP!
This commit is contained in:
19
framework/common/functions/fn_getNameOfBase.sqf
Normal file
19
framework/common/functions/fn_getNameOfBase.sqf
Normal file
@@ -0,0 +1,19 @@
|
||||
#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;
|
||||
Reference in New Issue
Block a user