/* * Author: bux578, commy2 * Returns an array containing all items of a given unit * * Arguments: * 0: Unit * * Return Value: * 0: Headgear * 1: Goggles * 2: Uniform * 3: Uniform Items * 4: Vest * 5: Vest Items * 6: Backback * 7: Backpack Items * 8: Rifle * 9: Rifle Items * 10: Rifle Magazines * 11: Launcher * 12: Launcher Items * 13: Launcher Magazines * 14: Handgun * 15: Handgun Items * 16: Handgun Magazines * 17: Assigned Items (map, compass, watch, etc.) * 18: Binoculars * 19: Binocular Magazine (E.g. Laserbatteries) * * Public: Yes * * Note: Element 17 includes the Head Mounted Display (HMD) */ #include "script_component.hpp" params ["_unit", ["_showDeprecated", true]]; if (_showDeprecated) then { ACE_DEPRECATED("ace_common_fnc_getAllGear","3.7.0","getUnitLoadout"); }; if (isNull _unit) exitWith {[ "", "", "", [], "", [], "", [], "", ["","","",""], [], "", ["","","",""], [], "", ["","","",""], [], [], "", "" ]}; [ headgear _unit, goggles _unit, uniform _unit, uniformItems _unit, vest _unit, vestItems _unit, backpack _unit, backpackItems _unit, primaryWeapon _unit, primaryWeaponItems _unit, primaryWeaponMagazine _unit, secondaryWeapon _unit, secondaryWeaponItems _unit, secondaryWeaponMagazine _unit, handgunWeapon _unit, handgunItems _unit, handgunMagazine _unit, assignedItems _unit, binocular _unit, [_unit] call CBA_fnc_binocularMagazine ]