Arma 3 Scripting

Command in Unit Control

setUnitPos

Also available as Markdown and JSON, or read the original wiki page.

Description

Set unit position rules. This command will not change the stance of the human player, even though it will change the output of unitPos command. To change player stance use playAction or playActionNow:

player playAction "PlayerProne"; // DOWN
player playAction "PlayerStand"; // UP
player playAction "PlayerCrouch"; // MIDDLE

Syntax

unit setUnitPos mode

Parameters:

Returns: Nothing

Examples

Example 1

_soldier setUnitPos "UP";

See also

setUnitPosWeak · unitPos