// Script para chamar o distintivo de unidade de aviação no macacão de voo
// Autor: Valmo Trindade

params["_unit", "_battalion", ["_function", "pilot"], ["_rank", "LIEUTENANT"]];

_battalion = toLowerANSI _battalion;
_function = toLowerANSI _function;
_uniform = uniform _unit;

flightsuits = [
	"braf_characters_army_aviation_flightsuit",
	"braf_characters_air_force_fighter_flightsuit",
	"braf_characters_air_force_flightsuit",
	"braf_characters_navy_fighter_flightsuit",
	"braf_characters_navy_flightsuit",
	"braf_hiaf_pilot_coverall",
	"braf_cratenia_pilot_regular_Coverall"
];

armyAviationBattalions = [
	"1bavex",
	"2bavex",
	"3bavex",
	"4bavex"
];

airForceSquadrons = [
	"1gda", "jaguar",
	"afa",
	"1-9gav", "arara",
	"3-10gav", "centauro",
	"1-3gav", "escorpiao",
	"3-3gav", "flecha",
	"1-1gt", "gordo",
	"2-3gav", "grifo",
	"7-8gav", "harpia",
	"1-12gav", "horus",
	"1-15gav", "onca",
	"5-8gav", "pantera",
	"1-10gav", "poker",
	"2-8gav", "poti",
	"3-8gav", "puma",
	"eda", "fumaca",
	"1-1gavca", "jambock",
	"2-5gav", "joker",
	"1-4gav", "pacau",
	"1-14gav", "pampa",
	"2-1gavca", "pifpaf",
	"2-10gav", "pelicano"
];

navySquadrons = [
	"hu1", "aguia",
	"hu2", "pegasus",
	"hu41", "hipogrifo",
	"hu51", "albatroz",
	"hu61", "gaviao",
	"hu91", "tucano",
	"hs1", "guerreiro",
	"ha1", "lince",
	"hi1", "garça",
	"qe1", "harpia_drone",
	"vf1", "falcao"
];

if ((_uniform in flightsuits)) then {
	_is_fighter_suit = false;

	_fighter_suits = [
		"braf_characters_air_force_fighter_flightsuit",
		"braf_characters_navy_fighter_flightsuit"
	];

	if (_uniform in _fighter_suits) then {
		_is_fighter_suit = true;
	};

	handleFightersuitSelection = {
		params["_slot", "_is_fighter_suit"];

		if (_is_fighter_suit) then {
			_slot = _slot + 2;
		};

		_slot;
	};

	for "_i" from ([1, _is_fighter_suit] call handleFightersuitSelection) to ([12, _is_fighter_suit] call handleFightersuitSelection) do {
		_unit setObjectTextureGlobal [_i, ""];
		_unit setObjectMaterialGlobal [_i, ""];
	};

	if (_battalion in armyAviationBattalions) then {
		_unit setObjectTextureGlobal [[1, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_certification\army_nvg_co.paa"];
		_unit setObjectMaterialGlobal [[1, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_certification\army_nvg.rvmat"];
		_unit setObjectTextureGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_force\avex_co.paa"];
		_unit setObjectMaterialGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_force\avex.rvmat"];
		_unit setObjectTextureGlobal [[5, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\flag\Flag_co.paa"];
		_unit setObjectMaterialGlobal [[5, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\flag\Flag.rvmat"];
		switch (_battalion) do {
			case "1bavex": {
				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\1bavex_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\1bavex.rvmat"];
			};
			case "2bavex": {
				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\2bavex_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\2bavex.rvmat"];
			};
			case "3bavex": {
				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\3bavex_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\3bavex.rvmat"];
			};
			case "4bavex": {
				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\4bavex_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\4bavex.rvmat"];
			};
			default {
				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\1bavex_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\1bavex.rvmat"];
			};
		};
		switch (_function) do {
			case "pilot": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_pilot_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_pilot.rvmat"];
			};
			case "mechanic": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_mec_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_mec.rvmat"];
			};
			case "observer": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_obs_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_obs.rvmat"];
			};
			default {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_pilot_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\army_pilot.rvmat"];
			};
		};
	};
	if (_battalion in airForceSquadrons) then {
		_unit setObjectTextureGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_force\d22_co.paa"];
		_unit setObjectMaterialGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_force\d22.rvmat"];
		_unit setObjectTextureGlobal [[9, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\tab\brazilian_tab_co.paa"];
		_unit setObjectMaterialGlobal [[9, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\tab\brazilian_tab.rvmat"];
		_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\air_force_pilot_co.paa"];
		_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\air_force_pilot.rvmat"];
		_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\OfSub.paa"];
		_unit setObjectMaterialGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\Aviacao.rvmat"];

		switch (_rank) do {
			case "LIEUTENANT": {
				_unit setObjectTextureGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\1ten\Rank_co.paa"];
				_unit setObjectMaterialGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\1ten\Rank.rvmat"];
				_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\OfSub.paa"];
			};
			case "CAPTAIN": {
				_unit setObjectTextureGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Cap\Rank_co.paa"];
				_unit setObjectMaterialGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Cap\Rank.rvmat"];
				_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\OfInt.paa"];
			};
			case "MAJOR": {
				_unit setObjectTextureGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Maj\Rank_co.paa"];
				_unit setObjectMaterialGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Maj\Rank.rvmat"];
				_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\OfSup.paa"];
			};
			case "COLONEL": {
				_unit setObjectTextureGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Cel\Rank_co.paa"];
				_unit setObjectMaterialGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Cel\Rank.rvmat"];
				_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\OfSup.paa"];
			};
			default {
				_unit setObjectTextureGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Cap\Rank_co.paa"];
				_unit setObjectMaterialGlobal [[11, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\rank\fab\Cap\Rank.rvmat"];
				_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\OfSub.paa"];
			};
		};

		switch (_battalion) do {
			case "1gda": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_2_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_2.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\1GDA\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\1GDA\EsqFAB.rvmat"];
			};
			case "jaguar": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_2_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_2.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\1GDA\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\1GDA\EsqFAB.rvmat"];
			};
			case "afa": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\AFA\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\AFA\EsqFAB.rvmat"];
			};
			case "1-9gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Arara\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Arara\EsqFAB.rvmat"];
			};
			case "arara": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Arara\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Arara\EsqFAB.rvmat"];
			};
			case "3-10gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Centauro\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Centauro\EsqFAB.rvmat"];
			};
			case "centauro": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Centauro\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Centauro\EsqFAB.rvmat"];
			};
			case "1-3gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_7_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_7.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Escorpiao\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Escorpiao\EsqFAB.rvmat"];
			};
			case "escorpiao": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_7_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_7.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Escorpiao\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Escorpiao\EsqFAB.rvmat"];
			};
			case "3-3gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Flecha\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Flecha\EsqFAB.rvmat"];
			};
			case "flecha": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Flecha\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Flecha\EsqFAB.rvmat"];
			};
			case "1-1gt": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_11_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_11.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Gordo\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Gordo\EsqFAB.rvmat"];
			};
			case "gordo": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_11_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_11.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Gordo\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Gordo\EsqFAB.rvmat"];
			};
			case "2-3gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_6_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_6.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Grifo\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Grifo\EsqFAB.rvmat"];
			};
			case "grifo": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_6_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_6.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Grifo\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Grifo\EsqFAB.rvmat"];
			};
			case "7-8gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Harpia\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Harpia\EsqFAB.rvmat"];
			};
			case "harpia": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Harpia\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Harpia\EsqFAB.rvmat"];
			};
			case "1-12gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Horus\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Horus\EsqFAB.rvmat"];
			};
			case "horus": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Horus\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Horus\EsqFAB.rvmat"];
			};
			case "1-15gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Onca\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Onca\EsqFAB.rvmat"];
			};
			case "onca": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Onca\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Onca\EsqFAB.rvmat"];
			};
			case "5-8gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Pantera\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Pantera\EsqFAB.rvmat"];
			};
			case "pantera": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Pantera\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Pantera\EsqFAB.rvmat"];
			};
			case "1-10gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poker\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poker\EsqFAB.rvmat"];
			};
			case "poker": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_4.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poker\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poker\EsqFAB.rvmat"];
			};
			case "2-8gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poti\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poti\EsqFAB.rvmat"];
			};
			case "poti": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poti\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Poti\EsqFAB.rvmat"];
			};
			case "3-8gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Puma\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Puma\EsqFAB.rvmat"];
			};
			case "puma": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12.rvmat"];

				_unit setObjectTextureGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Puma\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[8, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\Puma\EsqFAB.rvmat"];
			};
			case "eda": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\AFA\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\AFA\EsqFAB.rvmat"];

				_unit setObjectTextureGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\EDA\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\EDA\Bolso_R.rvmat"];
			};
			case "fumaca": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\AFA\EsqFAB_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron2\AFA\EsqFAB.rvmat"];

				_unit setObjectTextureGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\EDA\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[3, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\EDA\Bolso_R.rvmat"];
			};
			case "1-1gavca": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Jambock\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Jambock\Bolso_R.rvmat"];
			};
			case "jambock": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Jambock\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Jambock\Bolso_R.rvmat"];
			};
			case "2-5gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Joker\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Joker\Bolso_R.rvmat"];
			};
			case "joker": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_10.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Joker\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Joker\Bolso_R.rvmat"];
			};
			case "1-4gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pacau\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pacau\Bolso_R.rvmat"];
			};
			case "pacau": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_8.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pacau\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pacau\Bolso_R.rvmat"];
			};
			case "1-14gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_3_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_3.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pampa\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pampa\Bolso_R.rvmat"];
			};
			case "pampa": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_3_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_3.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pampa\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Pampa\Bolso_R.rvmat"];
			};
			case "2-1gavca": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\PIfPaf\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\PifPaf\Bolso_R.rvmat"];
			};
			case "pifpaf": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\PIfPaf\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\PifPaf\Bolso_R.rvmat"];
			};
			case "2-10gav": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\SAR\Pelicano\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\SAR\Pelicano\Bolso_R.rvmat"];
			};
			case "pelicano": {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_5.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\SAR\Pelicano\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\SAR\Pelicano\Bolso_R.rvmat"];
			};
			default {
				_unit setObjectTextureGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12_co.paa"];
				_unit setObjectMaterialGlobal [[2, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_wing\ala_12.rvmat"];

				_unit setObjectTextureGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Jambock\Bolso_R_co.paa"];
				_unit setObjectMaterialGlobal [[7, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\squadron1\fab\Fighter\Jambock\Bolso_R.rvmat"];
			};
		};
	};
	if (_battalion in navySquadrons) then {
		_unit setObjectTextureGlobal [[1, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_certification\navy_nvg_co.paa"];
		_unit setObjectMaterialGlobal [[1, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\air_certification\navy_nvg.rvmat"];
		_unit setObjectTextureGlobal [[5, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\flag\Flag_co.paa"];
		_unit setObjectMaterialGlobal [[5, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\flag\Flag.rvmat"];
		switch (_battalion) do {
			case "hu1": {};
			case "aguia": {};
			case "hu2": {};
			case "pegasus": {};
			case "hu41": {};
			case "hipogrifo": {};
			case "hu51": {};
			case "albatroz": {};
			case "hu61": {};
			case "gaviao": {};
			case "hu91": {};
			case "tucano": {};
			case "hs1": {};
			case "guerreiro": {};
			case "ha1": {};
			case "lince": {};
			case "hi1": {};
			case "garça": {};
			case "qe1": {};
			case "harpia_drone": {};
			case "vf1": {
				_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\Aviacao_co.paa"];
				_unit setObjectMaterialGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\Aviacao.rvmat"];

				_unit setObjectTextureGlobal [[10, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\vf1\VF1_co.paa"];
				_unit setObjectMaterialGlobal [[10, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\vf1\VF1.rvmat"];
			};
			case "falcao": {
				_unit setObjectTextureGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\Aviacao_co.paa"];
				_unit setObjectMaterialGlobal [[4, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\aviation_type\Aviacao.rvmat"];

				_unit setObjectTextureGlobal [[10, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\vf1\VF1_co.paa"];
				_unit setObjectMaterialGlobal [[10, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\vf1\VF1.rvmat"];
			};
			default {};
		};
		switch (_function) do {
			case "pilot": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot.rvmat"];
			};
			case "piloto": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot.rvmat"];
			};
			case "pil": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot.rvmat"];
			};
			case "mechanic": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_mec_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_mec.rvmat"];
			};
			case "mecanico": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_mec_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_mec.rvmat"];
			};
			case "mec": {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_mec_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_mec.rvmat"];
			};
			default {
				_unit setObjectTextureGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot_co.paa"];
				_unit setObjectMaterialGlobal [[6, _is_fighter_suit] call handleFightersuitSelection, "\braf\braf_insignia\uniform\flightsuit_insignias\identification\navy_pilot.rvmat"];
			};
		};
	};
};