Difference between revisions of "weaponLowered"
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Command|= | + | {{Command|Comments= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | arma3 | | + | | arma3 |Game name= |
|0.50|= Game version | |0.50|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | | + | | 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> | + | |x1= <code>isWeaponLowered = [[weaponLowered]] [[player]];</code>|EXAMPLE1= |
− | </code>|= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | | + | | [[stance]], [[unitPos]] [[animationState]] |SEEALSO= |
− | | |= | + | | |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 12:11, 2 September 2019
Hover & click on the images for descriptions
Description
- Description:
-
Returns true if given soldier's weapon is lowered.
Syntax
- Syntax:
- weaponLowered unit
- Parameters:
- unit: Object
- Return Value:
- Boolean
Examples
- Example 1:
-
isWeaponLowered = weaponLowered player;
Additional Information
- See also:
- stanceunitPos animationState
- Groups:
- Uncategorised
Notes
Notes
Bottom Section
- Posted on November 11, 2016 - 01:13 (UTC)
- Pierre MGI
- This command seems to work for player only, not for AI.