fixed callsign function when vehicle is crewed

This commit is contained in:
Valmo Trindade
2025-02-02 15:06:58 -03:00
parent 907be5ee2d
commit 18049417f7

View File

@@ -17,7 +17,11 @@ if (roleDescription _unit != "") then {
};
if ((([_unit] call BIS_fnc_objectType) select 0) == "Vehicle") then {
_callsign = getText (configFile >> "CfgVehicles" >> typeOf _unit >> "displayName") + " | " + name _unit;
_callsign = getText (configFile >> "CfgVehicles" >> typeOf _unit >> "displayName");
if (!isNull driver _unit) then {
_callsign = getText (configFile >> "CfgVehicles" >> typeOf _unit >> "displayName") + " | " + name (driver _unit);
};
};
if (unitIsUAV _unit) then {