{"name":"handgunItems","operator":null,"title":"handgunItems","type":"command","url":"https://community.bistudio.com/wiki/handgunItems","revid":321090,"updated":"2022-05-13T13:46:43Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns array with all items assigned to the handgunWeapon except magazines. Use handgunMagazine command for the latter. This command is used for infantry weapons only.","syntaxes":[{"syntax":"handgunItems unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Array","types":["Array"],"description":"[silencer, laserpointer/flashlight, optics, bipod]","text":"Array - [silencer, laserpointer/flashlight, optics, bipod]"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\nhandgunItems player;\n/*\n[\n    \"muzzle_snds_L\",    // silencer\n    \"\",                    // laser\n    \"\",                    // optics\n    \"\"                    // bipod\n]\n*/\n```","code":["handgunItems player;\n/*\n[\n\t\"muzzle_snds_L\",\t// silencer\n\t\"\",\t\t\t\t\t// laser\n\t\"\",\t\t\t\t\t// optics\n\t\"\"\t\t\t\t\t// bipod\n]\n*/"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addHandgunItem","removeHandgunItem","removeAllHandgunItems","weaponAccessories","weaponAccessoriesCargo","primaryWeaponItems","secondaryWeaponItems","weaponsItems","binocularItems","weaponsItemsCargo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 0.50","Scripting Commands"]}