Arma 3 Scripting

isWeaponRested

  • Local argument
  • Arma 3 v1.42

Command · Markdown · JSON · original wiki page

Description

Returns true if weapon is currently rested.

Syntax

isWeaponRested unit

Parameters:

Returns: Boolean

Examples

Example 1

_rest = isWeaponRested player;

See also

isWeaponDeployed · canDeployWeapon

Community notes

AgentRev

You can force a unit out of bipod or resting with:

_unit playMove "";

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.