mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
18 lines
492 B
Plaintext
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;
|