Difference between revisions of "setUnitPos"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 59: Line 59:
 
[[Category:Scripting Commands OFP 1.46|SETUNITPOS]]
 
[[Category:Scripting Commands OFP 1.46|SETUNITPOS]]
 
[[Category:Scripting Commands ArmA|SETUNITPOS]]
 
[[Category:Scripting Commands ArmA|SETUNITPOS]]
 +
[[Category:Scripting Commands ArmA2|SETUNITPOS]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:17, 27 April 2012

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

General Barron 21 October 2009
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).
kju 11 March 2011
The below comment about 'an additional join required' is no longer true for Operation Arrowhead.
Anon
Command most likely only works if run before join into group after createUnit array.

Bottom Section