setUnitPos

From Bohemia Interactive Community
Revision as of 01:42, 14 April 2015 by Ceeeb (talk | contribs) (middle to all caps to be consistent with the other settings.)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Set unit position rules. Mode may be one of:
  • "DOWN" - unit goes prone and stays prone.
  • "UP" - unit stands and stays standing.
  • "MIDDLE" - Kneel Position. ArmA version 1.04 (Unit will not kneel if it is unarmed)
  • "AUTO" - unit chooses mode according to circumstances.
Groups:
Uncategorised

Syntax

Syntax:
unit setUnitPos mode
Parameters:
unit: Object
mode: String - as above
Return Value:
Nothing

Examples

Example 1:
_soldier setUnitPos "UP";

Additional Information

See also:
setUnitPosWeakunitPos

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on 18 September 2008‎
Dwarden
Command most likely only works if run before join into group after createUnit array.
Posted on 21 October 2009
General Barron
In Arma, this command does not change the stance of player units. In VBS2 after v1.30, this command does affect players (it changes their stance, but doesn't force them to stay in that stance).
Posted on 11 March 2011
kju
The above comment by Dwarden about 'an additional join required' is no longer true for Operation Arrowhead.
Posted on 26 September 2013‎
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.

Bottom Section