Difference between revisions of "setUnitPos"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Notes (Anon to Dwarden))
m (Fixed note formatting (Notes still need dates and ordering))
Line 36: Line 36:
 
<!-- Note Section BEGIN -->
 
<!-- Note Section BEGIN -->
  
<dt class="note">'''[[User:Katulobotomia|Katulobotomia]]'''  
+
<dd class="notedate">Posted on unknown date
 +
<dt class="note">'''[[User:Katulobotomia|Katulobotomia]]'''
 
<dd class="note">
 
<dd class="note">
 
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.
 
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.
  
<dt class="note">'''[[User:General Barron|General Barron]]''' 21 October 2009
+
<dd class="notedate">Posted on 21 October 2009
 +
<dt class="note">'''[[User:General Barron|General Barron]]'''
 
<dd class="note">
 
<dd class="note">
 
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).
 
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).
  
 
+
<dd class="notedate">Posted on 11 March 2011
<dt class="note">'''[[User:kju|kju]]''' 11 March 2011
+
<dt class="note">'''[[User:kju|kju]]'''
 
<dd class="note">
 
<dd class="note">
 
The below comment about 'an additional join required' is no longer true for Operation Arrowhead.
 
The below comment about 'an additional join required' is no longer true for Operation Arrowhead.
  
 
+
<dd class="notedate">Posted on unknown date
<dt class="note">[[User:Dwarden|Dwarden]]
+
<dt class="note">'''[[User:Dwarden|Dwarden]]'''
 
<dd class="note">
 
<dd class="note">
 
Command most likely only works if run before [[join]] into group after [[createUnit array]].
 
Command most likely only works if run before [[join]] into group after [[createUnit array]].
 
  
 
<!-- Note Section END -->
 
<!-- Note Section END -->

Revision as of 06:06, 19 September 2014

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:
unitName setUnitPos mode
Parameters:
unitName: Object
mode: String As above
Return Value:
Nothing

Examples

Example 1:
_loon1 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 unknown date
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.
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 below comment about 'an additional join required' is no longer true for Operation Arrowhead.
Posted on unknown date
Dwarden
Command most likely only works if run before join into group after createUnit array.

Bottom Section