Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Sets the unit position rules.

Syntax

Syntax:unit setUnitPos mode
Parameters:
  • unit: Object - Affected unit.
  • mode: String - Position mode. Can be:
    • "DOWN" - Unit goes prone and stays prone.
    • "UP" - Unit stands and stays standing.
    • "MIDDLE" - Kneeling position (unit does not kneel, if it does not have a rifle).
    • "AUTO" - Unit chooses any of the other modes, according to circumstances.
Return Value:Nothing

Examples

Examples:
_loon1 setUnitPos "UP";

Additional Information

See also: setUnitPosWeak, unitPos
Multiplayer:
Problems:

Notes







Posted on Jul 20, 2012
Kronzky
setUnitPos "middle" or "down" has no effect on children.
There are no kneeling animations for children, so a crouched position is currently not possible, and in order for a child to go (and stay) prone, the prone animation has to be applied directly, and further, autonomous animations be disabled:


someKid playMove "aidlppnemstpsnonwnondnon0s"; 
someKid disableAI "anim";


Posted on Oct 21, 2009
General Barron
Since V1.30 this command does affect players as well (it changes their stance, but doesn't force them to stay in that stance).