Arma 3 Scripting

setUnitPos

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · 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

Community notes

Dwarden

Command most likely only works if run before join into group after createUnit.

.kju

The above comment by Dwarden about 'an additional join required' is no longer true for Operation Arrowhead.

Katulobotomia

A unit might not always go prone when ordered to setUnitPos "DOWN", if the unit doesn't agree with the command. To force the unit to go prone, stop the unit from firing by setCombatMode "BLUE" and then order the unit to prone.