weaponLowered: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(another buggy piece of ...)
(4 intermediate revisions by 3 users not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| True if given soldier's weapon is lowered. |= Description
| Returns [[true]] if given soldier's weapon is lowered. <br><br>
{{Important | This command will '''always''' return [[false]] if player is sprinting, even without a weapon. Alternatively, the weapon raised state could be obtained via [[animationState]] command <tt>...slow...</tt> vs <tt>...sras...</tt>}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''weaponLowered''' unit |= Syntax
| [[weaponLowered]] unit |SYNTAX=


|p1= unit: [[Object]]  |= PARAMETER1  
|p1= unit: [[Object]]  |PARAMETER1=   


| [[Boolean]] |= RETURNVALUE
| [[Boolean]] |RETURNVALUE=  




|x1= <code>isWeaponLowered = weaponLowered player;
|x1= <code>isWeaponLowered = [[weaponLowered]] [[player]];</code>|EXAMPLE1=  
</code>|= EXAMPLE1


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO
| [[stance]], [[unitPos]] [[animationState]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}
Line 39: Line 39:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on November 11, 2016 - 01:13 (UTC)</dd>
<dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt>
<dd class="note">
This command seems to work for player only, not for AI.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 22:52, 23 June 2019

Hover & click on the images for description

Description

Description:
Returns true if given soldier's weapon is lowered.

This command will always return false if player is sprinting, even without a weapon. Alternatively, the weapon raised state could be obtained via animationState command ...slow... vs ...sras...
Groups:
Uncategorised

Syntax

Syntax:
weaponLowered unit
Parameters:
unit: Object
Return Value:
Boolean

Examples

Example 1:
isWeaponLowered = weaponLowered player;

Additional Information

See also:
stanceunitPos animationState

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

Notes

Bottom Section

Posted on November 11, 2016 - 01:13 (UTC)
Pierre MGI
This command seems to work for player only, not for AI.