From 3017e1bcf110281d9e42f2654d5177df9952fe58 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Mon, 19 Aug 2024 04:46:12 -0300 Subject: [PATCH] added air type to extract type handling --- addons/main/functions/extract_data/fn_extract_role.sqf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/addons/main/functions/extract_data/fn_extract_role.sqf b/addons/main/functions/extract_data/fn_extract_role.sqf index 0f3e8b8..a60592b 100644 --- a/addons/main/functions/extract_data/fn_extract_role.sqf +++ b/addons/main/functions/extract_data/fn_extract_role.sqf @@ -1,4 +1,12 @@ params["_unit"]; -private _role = "a-f-G"; + +private _affiliation = "f"; +private _type = "G"; + +if (vehicle _unit isKindOf "plane") then { + _type = "A"; +}; + +_role = "a-" + _affiliation + "-" + _type _role \ No newline at end of file