{"name":"secondaryWeapon","title":"secondaryWeapon","type":"command","url":"https://community.bistudio.com/wiki/secondaryWeapon","revid":348320,"updated":"2023-11-08T12:59:40Z","groups":["Unit Inventory"],"status":"ok","games":{"ofp":"1.75","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.75","arma3_since":"0.50","description":"Returns the name of a unit's secondary weapon (launcher). To detect the weapon which is **currently** being used by the unit use currentWeapon.","syntaxes":[{"syntax":"secondaryWeapon unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"String","type_expr":"String","description":"class name of the secondary weapon or `\"\"` if none available"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["private _secondaryWeapon = secondaryWeapon player;"]},{"code":["hint secondaryWeapon player; // \"launch_NLAW_F\""]}],"see_also":["secondaryWeaponMagazine","secondaryWeaponItems","addSecondaryWeaponItem","primaryWeapon","handgunWeapon","currentWeapon","weapons"]}