Difference between revisions of "setUnitPos"

From Bohemia Interactive Community
Jump to navigation Jump to search
(note removed, description is updated instead)
m (template:command argument fix)
Line 20: Line 20:
 
[[player]] [[playAction]] "PlayerCrouch"; // MIDDLE</code>
 
[[player]] [[playAction]] "PlayerCrouch"; // MIDDLE</code>
  
|= Description
+
|DESCRIPTION=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| unit '''setUnitPos''' mode |= Syntax
+
| unit '''setUnitPos''' mode |SYNTAX=
  
|p1= unit: [[Object]] |= Parameter 1
+
|p1= unit: [[Object]] |PARAMETER1=
  
|p2= mode: [[String]] - as above |= Parameter 2
+
|p2= mode: [[String]] - as above |PARAMETER2=
  
| [[Nothing]] |= Return value
+
| [[Nothing]] |RETURNVALUE=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>_soldier [[setUnitPos]] "UP";</code> |= Example 1
+
|x1= <code>_soldier [[setUnitPos]] "UP";</code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[setUnitPosWeak]], [[unitPos]]|= See also
+
| [[setUnitPosWeak]], [[unitPos]]|SEEALSO=
  
 
}}
 
}}

Revision as of 15:48, 7 April 2019

Template:Command

Notes

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.

Bottom Section