Epoch/Sources/epoch_code/compile/functions/EPOCH_itemDisplayName.sqf
2015-09-14 15:55:36 -05:00

18 lines
492 B
Plaintext

private ["_item"];
_item = _this;
_return = "";
if ([_item, "CfgVehicles"] call EPOCH_fnc_isAny) then {
_return = getText(configfile >> "CfgVehicles" >> _item >> "DisplayName");
} else {
if ([_item, "CfgWeapons"] call EPOCH_fnc_isAny) then {
_return = getText(configfile >> "CfgWeapons" >> _item >> "DisplayName");
} else {
if ([_item, "CfgMagazines"] call EPOCH_fnc_isAny) then {
_return = getText(configfile >> "CfgMagazines" >> _item >> "DisplayName");
};
};
};
_return;