From d9e7dfe49736e21819adeec04afd9b723319a8d3 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Sat, 10 May 2025 05:51:06 -0300 Subject: [PATCH] changed extract role to handle attribute provided --- addons/main/functions/extract_data/fn_extract_role.sqf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/main/functions/extract_data/fn_extract_role.sqf b/addons/main/functions/extract_data/fn_extract_role.sqf index 776bc90..eb94b3f 100644 --- a/addons/main/functions/extract_data/fn_extract_role.sqf +++ b/addons/main/functions/extract_data/fn_extract_role.sqf @@ -110,4 +110,11 @@ if ((typeOf (vehicle _unit) != typeOf _unit) or ((_unit_type select 0) == "Vehic _role = "a-" + _affiliation + "-" + _type; + +armatak_attribute_marker_type = _unit getVariable "armatak_attribute_marker_type"; + +if (!isNil "armatak_attribute_marker_type" or armatak_attribute_marker_type != '') then { + _role = armatak_attribute_marker_type; +}; + _role \ No newline at end of file