isWeaponDeployed

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.42
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.42

Description

Description:
Returns true if weapon is currently deployed.

Syntax

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

Examples

Example 1:
_dep = isWeaponDeployed player;

Additional Information

Multiplayer:
-
See also:
isWeaponRested

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To


Posted on July 1, 2015 - 16:44 (UTC)
AgentRevolution
You can force a unit out of bipod or resting with: _unit playMove "";
Posted on March 4, 2017 - 03:58 (UTC)
Beno 83au
playMove, as well as switchMove, appear to not work when forcing a player out of being deployed. A more reliable method is:
_player setPos (_player modelToWorld [0,0,0]);