canDeployWeapon

From Bohemia Interactive Community
Revision as of 16:24, 4 August 2021 by Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.06 |branch = dev |gr1= Weapons |arg= local |descr= Returns true if player's weapon can be deployed. |s1= [[canDeployWeapon]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.06.

Description

Description:
Returns true if player's weapon can be deployed.
Groups:
Weapons

Syntax

Syntax:
canDeployWeapon unit
Parameters:
unit : Object
Return Value:
Boolean : true - if weapon can be deployed

Examples

Example 1:
Execute on server: private _canDeploy = canDeployWeapon player;

Additional Information

See also:
isWeaponDeployedisWeaponRested

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note