From e84ad95b063eae31afbcec72d1f80708e77ea834 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Sun, 12 Oct 2025 20:28:26 -0300 Subject: [PATCH] Updated configOf roles --- addons/main/functions/extract_data/fn_extract_group_role.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/main/functions/extract_data/fn_extract_group_role.sqf b/addons/main/functions/extract_data/fn_extract_group_role.sqf index b9a69f6..4e49e38 100644 --- a/addons/main/functions/extract_data/fn_extract_group_role.sqf +++ b/addons/main/functions/extract_data/fn_extract_group_role.sqf @@ -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; };