Code:
//Origins Box - By: Mizzle420420
//Spawns Origins Gear on an AI bandit, wait until the gear loads on him and he finishes reloading, then shoot him and loot his body.
_weapons = [
'VSS_vintorez',
'ori_mosin',
'ori_pps43',
'ori_vil_uzi_rozkl',
'ori_vil_uzi_sd',
'ori_vil_uzimini',
'ori_vil_uzimini_SD',
'Ori_Sa48SMG',
'Ori_SKS',
'Ori_Tt33',
'Ori_APS',
'Ori_APS_SD',
'Ori_cz75',
'Ori_cz83',
'Ori_mossberg',
'ItemCompass',
'ItemGPS',
'ItemKnife',
'ItemMap',
'ItemMatchbox',
'ItemToolbox',
'ItemWatch',
'ItemEtool',
'NVGoggles',
'ItemHatchet',
'Binocular_Vector' ];
_magazine = [
'20Rnd_9x39_SP5_VSS',
'Ori_mosin_clip',
'Ori_35Rnd_smg',
'30Rnd_9x19_UZI',
'30Rnd_9x19_MP5',
'30Rnd_9x19_MP5SD',
'Ori_10Rnd_SKS',
'Ori_8Rnd_TT',
'Ori_20Rnd_APS',
'Ori_20Rnd_APS_SD',
'15Rnd_9x19_M9',
'Ori_12Rnd_maka',
'2Rnd_shotgun_74Slug',
'2Rnd_shotgun_74Pellets',
'8Rnd_B_Beneli_Pellets',
'8Rnd_B_Beneli_74Slug',
'ItemCeMix',
'PartScrap',
'ItemCementBag',
'ItemRocks',
'ItemLimestone',
'ItemCinderblocks',
'ItemBattery',
'ItemPin',
'ItemRWood',
'PartWoodPile',
'ItemJerrycanB',
'ItemRestTent',
'ItemTent',
'ItemBpt_g_b',
'ItemBpt_g_s',
'ItemBpt_h3',
'ItemBpt_h2',
'ItemBpt_h1',
'ItemBpt_b3',
'ItemBpt_b2',
'ItemBpt_b1'
];
_agent = createAgent ["Bandit1_DZ", [(getpos player select 0), (getpos player select 1), 10], [], 5, "NONE"];
_position = [_position,0,20,10,0,20,0] call BIS_fnc_findSafePos;
_agent addBackPack 'O_MegaPack_1';
{ _agent addWeapon _x; _agent addWeapon _x; _agent addWeapon _x;_agent addWeapon _x;_agent addWeapon _x;_agent addWeapon _x;_agent addWeapon _x;_agent addWeapon _x;_agent addWeapon _x;_agent addWeapon _x;} forEach _weapons;
{ for [{ b=0 },{ b < 50 },{ b = b + 1; }]do{_agent addMagazine _x;}; } forEach _magazine;
cutText ["Origins Bandit Spawned", "PLAIN", 2];