ACE3/addons/disarming/functions/fnc_getAllGearContainer.sqf
2015-02-27 16:16:35 -06:00

14 lines
350 B
Plaintext

#include "script_component.hpp"
PARAMS_1(_target);
_allGear = [[],[]];
{
//todo: Use 1.40 Append
_allGear set [0, (_allGear select 0) + (_x select 0)];
_allGear set [1, (_allGear select 1) + (_x select 1)];
} forEach [(getWeaponCargo _target), (getItemCargo _target), (getMagazineCargo _target), (getBackpackCargo _target)];
_allGear