setUnitPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 30: Line 30:
|x1= <code>_soldier [[setUnitPos]] "UP";</code>
|x1= <code>_soldier [[setUnitPos]] "UP";</code>


| [[setUnitPosWeak]], [[unitPos]]
|seealso= [[setUnitPosWeak]], [[unitPos]]
}}
}}



Revision as of 00:06, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Unit Control

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
mode: String - as above
Return Value:
Return value needed

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
Posted on 18 September 2008‎
Dwarden
Command most likely only works if run before join into group after createUnit.
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.