weaponLowered: Difference between revisions
Jump to navigation
Jump to search
Austin medic (talk | contribs) No edit summary |
mNo edit summary |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3 | | | arma3 |Game name= | ||
|0.50|= Game version | |0.50|= Game version | ||
|gr1= Weapons |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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= | ||
|p1= unit: [[Object]] |= | |p1= unit: [[Object]] |PARAMETER1= | ||
| [[Boolean]] |= | | [[Boolean]] |RETURNVALUE= | ||
|x1= <code>isWeaponLowered = weaponLowered player; | |x1= <code>isWeaponLowered = [[weaponLowered]] [[player]];</code>|EXAMPLE1= | ||
</code>|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[stance]], [[unitPos]] [[animationState]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} | ||
Line 39: | Line 41: | ||
[[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 13:43, 21 September 2020
Description
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.