2015-01-12 09:07:03 +00:00
|
|
|
/*
|
2015-01-16 18:24:25 +00:00
|
|
|
* Author: bux578
|
|
|
|
*
|
|
|
|
* Returns an array containing all items of a given unit
|
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* 0: Unit (Object)
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Array with all the gear
|
|
|
|
*/
|
2015-01-12 10:24:58 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-16 18:24:25 +00:00
|
|
|
EXPLODE_1_PVT(_this,_unit);
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-01-16 18:24:25 +00:00
|
|
|
if (isNull _unit) exitWith {[]};
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-01-16 18:24:25 +00:00
|
|
|
[
|
2015-01-13 14:28:03 +00:00
|
|
|
(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)
|
2015-01-16 18:24:25 +00:00
|
|
|
]
|