setUnitPos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(add. ArmA2 classification)
Line 45: Line 45:
[[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|{{uc:{{PAGENAME}}}}]]

Revision as of 17:30, 3 June 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:
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

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

Bottom Section