{"name":"handgunWeapon","operator":null,"title":"handgunWeapon","type":"command","url":"https://community.bistudio.com/wiki/handgunWeapon","revid":320951,"updated":"2022-05-13T10:04:47Z","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 the name of a unit's handgun (an empty string if there is none).","syntaxes":[{"syntax":"handgunWeapon 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":"String","types":["String"],"description":null,"text":"String"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\nhint handgunWeapon player; //\"hgun_P07_F\"\n```","code":["hint handgunWeapon player; //\"hgun_P07_F\""]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["handgunMagazine","handgunItems","addHandgunItem","removeHandgunItem","removeAllHandgunItems","primaryWeapon","secondaryWeapon","currentWeapon","weapons"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 0.50","Scripting Commands"]}