From 2108d20b01bb393fd7b26534e474daf942f42517 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Wed, 26 Nov 2025 20:20:51 -0300 Subject: [PATCH] changed default affiliation to be unkown --- .../main/functions/extract_data/fn_extract_role.sqf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/addons/main/functions/extract_data/fn_extract_role.sqf b/addons/main/functions/extract_data/fn_extract_role.sqf index 111f057..95dc387 100644 --- a/addons/main/functions/extract_data/fn_extract_role.sqf +++ b/addons/main/functions/extract_data/fn_extract_role.sqf @@ -9,8 +9,10 @@ private _type = "G"; private _role = "a-f-G-U-C-I"; private _side = side _unit; -if (isNil {_unit getVariable "armatak_current_side"}) then { - _side = _unit getVariable "armatak_current_side"; +if (isNil { + _unit getVariable "armatak_current_side" +}) then { + _side = _unit getVariable "armatak_current_side"; }; switch (str _side) do { @@ -27,7 +29,7 @@ switch (str _side) do { _affiliation = "u"; }; default { - _affiliation = "f"; + _affiliation = "u"; }; }; @@ -115,11 +117,10 @@ 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 +_role \ No newline at end of file