isWeaponRested: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "")
m (Text replacement - "AgentRevolution" to "AgentRev")
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Scripting_Commands_Arma_3]]
{{RV|type=command
[[Category:Arma_3:_New_Scripting_Commands_List]]
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|1.42|Game version=
|version1= 1.42
|arg= local|Multiplayer Arguments=


|gr1= Weapons |GROUP1=
|arg= local


____________________________________________________________________________________________
|gr1= Weapons


| Returns true if weapon is currently rested. |DESCRIPTION=
|descr= Returns true if weapon is currently rested.
____________________________________________________________________________________________


| [[isWeaponRested]] unit|SYNTAX=
|s1= [[isWeaponRested]] unit


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


| [[Boolean]] |RETURNVALUE=
|r1= [[Boolean]]
____________________________________________________________________________________________
 
|x1= <code>_rest = [[isWeaponRested]] [[player]]; </code> |EXAMPLE1=


____________________________________________________________________________________________
|x1= <sqf>_rest = isWeaponRested player;</sqf>
 
| [[isWeaponDeployed]] |SEEALSO=


|seealso= [[isWeaponDeployed]] [[canDeployWeapon]]
}}
}}


<!-- CONTINUE Notes -->
<dl class="command_description">
 
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<dt></dt>
<dl class="command_description">
<dd class="notedate">Posted on 2015-07-01 - 16:44 (UTC)</dd>
<dd class="notedate">Posted on July 1, 2015 - 16:44 (UTC)</dd>
<dt class="note">[[User:AgentRev|AgentRev]]</dt>
<dt class="note">[[User:AgentRevolution|AgentRevolution]]</dt>
<dd class="note">
<dd class="note">
You can force a unit out of bipod or resting with:
You can force a unit out of bipod or resting with:
<code>_unit [[playMove]] "";</code>
<sqf>_unit playMove "";</sqf>
</dd>
</dd>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<dt><dt>
<dl class="command_description">
<dd class="notedate">Posted on 2015-07-12 - 11:00 (UTC)</dd>
<dd class="notedate">Posted on July 12, 2015 - 11:00 (UTC)</dd>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
<dd class="note">
As of 1.49 <code>[[isWeaponRested]] [[player]]</code> is the only current use of this command. You cannot detect remote player and you cannot detect local unit that is not a player. Might as well be a nullar command without argument.
As of 1.49 <sqf>isWeaponRested player;</sqf> is the only current use of this command. You cannot detect remote player and you cannot detect local unit that is not a player. Might as well be a nullar command without argument.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 23:05, 4 May 2024

Hover & click on the images for description

Description

Description:
Returns true if weapon is currently rested.
Groups:
Weapons

Syntax

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

Examples

Example 1:
_rest = isWeaponRested player;

Additional Information

See also:
isWeaponDeployed canDeployWeapon

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
Posted on 2015-07-01 - 16:44 (UTC)
AgentRev
You can force a unit out of bipod or resting with:
_unit playMove "";
Posted on 2015-07-12 - 11:00 (UTC)
Killzone_Kid
As of 1.49
isWeaponRested player;
is the only current use of this command. You cannot detect remote player and you cannot detect local unit that is not a player. Might as well be a nullar command without argument.