canDeployWeapon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|gr1= Weapons | |gr1= Weapons | ||
|arg= local | |arg= local | ||
|descr= Returns [[true]] if | |descr= Returns [[true]] if a unit's weapon can be deployed. | ||
|s1= [[canDeployWeapon]] unit | |s1= [[canDeployWeapon]] unit | ||
|p1= unit : [[Object]] | |p1= unit : [[Object]] | ||
|r1= [[Boolean]] | |r1= [[Boolean]] - [[true]] if unit's weapon can be deployed | ||
|x1= | |x1= <sqf>if (canDeployWeapon player) then { hint "I could rest my weapon here..." };</sqf> | ||
|seealso= [[isWeaponDeployed]] [[isWeaponRested]] | |seealso= [[isWeaponDeployed]] [[isWeaponRested]] | ||
}} | }} |
Latest revision as of 19:08, 5 May 2022
Description
Syntax
- Syntax:
- canDeployWeapon unit
- Parameters:
- unit : Object
- Return Value:
- Boolean - true if unit's weapon can be deployed
Examples
- Example 1:
Additional Information
- See also:
- isWeaponDeployed isWeaponRested
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