{"name":"canDeployWeapon","operator":null,"title":"canDeployWeapon","type":"command","url":"https://community.bistudio.com/wiki/canDeployWeapon","revid":310452,"updated":"2022-05-05T18:08:10Z","groups":["Weapons"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.06"}],"since":{"game":"arma3","name":"Arma 3","version":"2.06"},"arma3_since":"2.06","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Returns true if a unit's weapon can be deployed.","syntaxes":[{"syntax":"canDeployWeapon 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":"Boolean","types":["Boolean"],"description":"true if unit's weapon can be deployed","text":"Boolean - true if unit's weapon can be deployed"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\nif (canDeployWeapon player) then { hint \"I could rest my weapon here...\" };\n```","code":["if (canDeployWeapon player) then { hint \"I could rest my weapon here...\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["isWeaponDeployed","isWeaponRested"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Weapons","Introduced with Arma 3 version 2.06","Scripting Commands"]}