setUnitPosWeak: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma1 | |game1= arma1 | ||
|1.04 | |version1= 1.04 | ||
|eff= global | |eff= global | ||
|arg= local | |arg= local | ||
|gr1= Unit Control | |gr1= Unit Control | ||
| Set unit position rules. Mode may be one of: | |descr= Set unit position rules. Mode may be one of: | ||
* '''"DOWN"''' - person goes prone and stays prone. | * '''"DOWN"''' - person goes prone and stays prone. | ||
* '''"UP"''' - person stands and stays standing. | * '''"UP"''' - person stands and stays standing. | ||
* '''" | * '''"MIDDLE"''' - Kneeling position. | ||
* '''"AUTO"''' - person chooses mode according to circumstances. | * '''"AUTO"''' - person chooses mode according to circumstances. | ||
| unit '''setUnitPosWeak''' mode | |s1= unit '''setUnitPosWeak''' mode | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
Line 22: | Line 23: | ||
|p2= mode: [[String]] - as above | |p2= mode: [[String]] - as above | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code>_soldier [[disableAI]] "FSM"; | |x1= <code>_soldier [[disableAI]] "FSM"; | ||
Line 46: | Line 47: | ||
Command most likely only works if run before [[join]] into group after [[createUnit array]]. | Command most likely only works if run before [[join]] into group after [[createUnit array]]. | ||
{{GameCategory|arma2|Scripting Commands}} | {{GameCategory|arma2|Scripting Commands}} | ||
{{GameCategory|arma3|Scripting Commands}} | {{GameCategory|arma3|Scripting Commands}} | ||
{{GameCategory|tkoh|Scripting Commands}} | {{GameCategory|tkoh|Scripting Commands}} |
Revision as of 20:12, 27 February 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" - Kneeling position.
- "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
- 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.