{"name":"canDeployWeapon","title":"canDeployWeapon","type":"command","url":"https://community.bistudio.com/wiki/canDeployWeapon","revid":310452,"updated":"2022-05-05T18:08:10Z","groups":["Weapons"],"status":"ok","games":{"arma3":"2.06"},"since":"arma3 2.06","arma3_since":"2.06","locality":{"argument":"local"},"description":"Returns true if a unit's weapon can be deployed.","syntaxes":[{"syntax":"canDeployWeapon unit","params":[{"name":"unit","type":"Object","type_expr":"Object","text":"unit : Object"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if unit's weapon can be deployed"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["if (canDeployWeapon player) then { hint \"I could rest my weapon here...\" };"]}],"see_also":["isWeaponDeployed","isWeaponRested"]}