Updated configOf roles

This commit is contained in:
Valmo Trindade
2025-10-12 20:28:26 -03:00
parent fff6716e24
commit e84ad95b06

View File

@@ -3,7 +3,7 @@ params["_unit"];
_group_roles = ["Team Member", "Team Lead", "HQ", "Sniper", "Medic", "Forward Observer", "RTO", "K9"];
_group_role = "Team Member";
if (["SpecialOperative", (configFile >> "CfgVehicles" >> typeOf _unit >> "role") call BIS_fnc_getCfgData, false] call BIS_fnc_inString) then {
if (["SpecialOperative", (configOf _unit >> "role") call BIS_fnc_getCfgData, false] call BIS_fnc_inString) then {
_group_role = _group_roles select 5;
};