setUnitPosWeak: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 10: | Line 9: | ||
|gr1= Unit Control |GROUP1= | |gr1= Unit Control |GROUP1= | ||
| Set unit position rules. Mode may be one of: | | Set unit position rules. Mode may be one of: | ||
Line 19: | Line 17: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| unit '''setUnitPosWeak''' mode |SYNTAX= | | unit '''setUnitPosWeak''' mode |SYNTAX= | ||
Line 28: | Line 25: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>_soldier [[disableAI]] "FSM"; | |x1= <code>_soldier [[disableAI]] "FSM"; | ||
_soldier [[setUnitPosWeak]] "DOWN";</code>|EXAMPLE1= | _soldier [[setUnitPosWeak]] "DOWN";</code>|EXAMPLE1= | ||
| [[FSM]], [[doFSM]], [[setUnitPos]], [[unitPos]] |SEEALSO= | | [[FSM]], [[doFSM]], [[setUnitPos]], [[unitPos]] |SEEALSO= |
Revision as of 03:42, 17 January 2021
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.