setUnitPos: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
mNo edit summary
Line 16: Line 16:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Object#Unit|Unit]] '''setUnitPos''' "mode" |= Syntax
| unitName '''setUnitPos''' mode |= Syntax


|p1= [[Object#Unit|Unit]] : [[Object]] |= Parameter 1
|p1= unitName: [[Object]] |= Parameter 1


|p2= mode: [[String]] As above|= Parameter 2
|p2= mode: [[String]] As above|= Parameter 2

Revision as of 21:28, 25 January 2009

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:
setUnitPosWeak

Notes

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

Notes

Command most likely only works if run before join into group after createUnit array.

Bottom Section