isWeaponRested: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (format)
m (Text replacement - "AgentRevolution" to "AgentRev")
 
(44 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Scripting_Commands_Arma_3]]
{{RV|type=command
[[Category:Arma_3:_New_Scripting_Commands_List]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
{{Command|= Comments
____________________________________________________________________________________________


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


____________________________________________________________________________________________
|arg= local


| Returns true if weapon is currently rested. |= Description
|gr1= Weapons
____________________________________________________________________________________________


| [[isWeaponRested]] unit|= Syntax
|descr= Returns true if weapon is currently rested.


|p1= unit: [[Object]] |= Parameter 1
|s1= [[isWeaponRested]] unit


| [[Boolean]] |= Return value
|p1= unit: [[Object]]
____________________________________________________________________________________________
 
|x1= <code>_rest = [[isWeaponRested]] [[player]]; </code> |= Example 1


____________________________________________________________________________________________
|r1= [[Boolean]]


| [[isWeaponDeployed]] |= See also
|x1= <sqf>_rest = isWeaponRested player;</sqf>


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


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


<!-- DISCONTINUE Notes -->
<dt></dt>
 
<dd class="notedate">Posted on 2015-07-01 - 16:44 (UTC)</dd>
<!-- CONTINUE Notes -->
<dt class="note">[[User:AgentRev|AgentRev]]</dt>
<dl class="command_description">
<dd class="notedate">Posted on July 1, 2015 - 16:44 (UTC)</dd>
<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.