setUnitPosWeak: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.04|Game version=
|1.04


|eff= global|Multiplayer Effects=
|eff= global
|arg= local|Multiplayer Arguments=
|arg= local


|gr1= Unit Control |GROUP1=
|gr1= Unit Control


| Set unit position rules. Mode may be one of:  
| Set unit position rules. Mode may be one of:  
Line 16: Line 16:
* '''"AUTO"''' - person chooses mode according to circumstances.
* '''"AUTO"''' - person chooses mode according to circumstances.


|DESCRIPTION=


| unit '''setUnitPosWeak''' mode |SYNTAX=


|p1= unit: [[Object]] |PARAMETER1=
| unit '''setUnitPosWeak''' mode


|p2= mode: [[String]] - as above |PARAMETER2=
|p1= unit: [[Object]]


| [[Nothing]] |RETURNVALUE=
|p2= mode: [[String]] - as above
 
| [[Nothing]]
   
   
|x1= <code>_soldier [[disableAI]] "FSM";
|x1= <code>_soldier [[disableAI]] "FSM";
_soldier [[setUnitPosWeak]] "DOWN";</code>|EXAMPLE1=
_soldier [[setUnitPosWeak]] "DOWN";</code>


| [[FSM]], [[doFSM]], [[setUnitPos]], [[unitPos]] |SEEALSO=
| [[FSM]], [[doFSM]], [[setUnitPos]], [[unitPos]]


}}
}}

Revision as of 11:10, 18 January 2021

Hover & click on the images for description

Description

Description:
Set unit position rules. Mode may be one of:
  • "DOWN" - person goes prone and stays prone.
  • "UP" - person stands and stays standing.
  • "Middle" - Kneel Position. ArmA version 1.04
  • "AUTO" - person chooses mode according to circumstances.
Groups:
Unit Control

Syntax

Syntax:
unit setUnitPosWeak mode
Parameters:
unit: Object
mode: String - as above
Return Value:
Nothing

Examples

Example 1:
_soldier disableAI "FSM"; _soldier setUnitPosWeak "DOWN";

Additional Information

See also:
FSMdoFSMsetUnitPosunitPos

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

Unknown
This command is the lowest level of priority for setting unit position and to be used in scripted FSM's.
The current priorities are:
  • 1. Unit pos commanded (from the commanding menu, higher priority).
  • 2. Unit pos scripted (from setUnitPos scripting command, medium priority).
  • 3. Unit pos FSM / setUnitPosWeak (used in the formation FSM, lowest priority).

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