change root level folder name to framework, update resupply+vehicleflags
tested locally
This commit is contained in:
17
framework/util/fn_getNameOfBase.sqf
Normal file
17
framework/util/fn_getNameOfBase.sqf
Normal file
@@ -0,0 +1,17 @@
|
||||
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