You can force a unit out of bipod or resting with:
_unit playMove "";
Also available as Markdown and JSON, or read the original wiki page.
Returns true if weapon is currently deployed.
isWeaponDeployed unit
Parameters:
unit: ObjectReturns: Boolean
since arma3 2.06
isWeaponDeployed [unit, onGround]
Parameters:
unit: ObjectonGround: Boolean - (Optional) true to check if deployed on ground, false to check if deployed on object. Omitted - same as main syntax.Returns: Boolean
_dep = isWeaponDeployed player;
_depOnObj = isWeaponDeployed [player, false];
isWeaponRested · canDeployWeapon
You can force a unit out of bipod or resting with:
_unit playMove "";
playMove, as well as switchMove, appears to not work when forcing a player out of being deployed. A more reliable method is:
_player setPos (_player modelToWorld [0,0,0]);