ACE3/addons/common/functions/fnc_getAllGear.sqf

55 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-01-12 09:07:03 +00:00
/*
2015-04-03 15:50:52 +00:00
* Author: bux578, commy2
*
* Returns an array containing all items of a given unit
*
* Argument:
* 0: Unit (Object)
*
* Return value:
2015-04-03 15:50:52 +00:00
* Array with all the gear, format:
* 0: headgear (String)
* 1: goggles (String)
* 2,3: uniform (String, Array)
* 4,5: vest (String, Array)
* 6,7: backpack (String, Array)
* 8-10: rifle (String, Array, Array)
* 11-13: launcher (String, Array, Array)
* 14-16: pistol (String, Array, Array)
* 17: map, compass, watch, etc. (Array)
* 18: binocluar (String)
* 19: active weapon, active muzzle, active weaponMode (Array)
2015-04-03 15:50:52 +00:00
*
*/
#include "script_component.hpp"
2015-05-14 18:06:06 +00:00
PARAMS_1(_unit);
2015-01-12 09:07:03 +00:00
2015-04-03 15:50:52 +00:00
if (isNull _unit) exitWith {[
"",
"",
"", [],
"", [],
"", [],
"", ["","","",""], [],
"", ["","","",""], [],
"", ["","","",""], [],
[],
"",
["","",""]
2015-04-03 15:50:52 +00:00
]};
2015-01-12 09:07:03 +00:00
[
2015-04-03 15:50:52 +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,
[currentWeapon _unit, currentMuzzle _unit, currentWeaponMode _unit]
2015-04-03 15:50:52 +00:00
]