isWeaponRested: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "Category:Scripting_Commands_Arma_3 Category:Arma_3:_New_Scripting_Commands_List {{Command|= Comments __________________________________________________________________...")
 
m (Text replacement - "AgentRevolution" to "AgentRev")
 
(50 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[[Category:Scripting_Commands_Arma_3]]
{{RV|type=command
[[Category:Arma_3:_New_Scripting_Commands_List]]
{{Command|= Comments
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.42


|1.43|= Game version
|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]] |= Parameter 1
|p1= unit: [[Object]]


| [[Boolean]] |= Return value
|r1= [[Boolean]]
____________________________________________________________________________________________
 
|x1= <code>_rest = [[isWeaponRested]] [[player]]; </code> |= Example 1


____________________________________________________________________________________________
|x1= <sqf>_rest = isWeaponRested player;</sqf>


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


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


<!-- CONTINUE Notes -->
<dt><dt>
<dd class="notedate">Posted on 2015-07-12 - 11:00 (UTC)</dd>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dd class="note">
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>


<!-- DISCONTINUE Notes -->
</dl>

Latest revision as of 00:05, 5 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.