setUnitPosWeak: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (typo)
mNo edit summary
(20 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| arma |Game name=


|1.04|= Game version
|1.04|Game version=
 
|eff= global|Multiplayer Effects=
|arg= local|Multiplayer Arguments=
 
|gr1= Unit Control |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 13: Line 18:
* '''"AUTO"''' - person chooses mode according to circumstances.
* '''"AUTO"''' - person chooses mode according to circumstances.


|= Description
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |PARAMETER1=


|p2= mode: [[String]] |= Parameter 2
|p2= mode: [[String]] - as above |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= |= Example 1
|x1= <code>_soldier [[disableAI]] "FSM";
_soldier [[setUnitPosWeak]] "DOWN";</code>|EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}
Line 36: Line 42:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


This command is the lowest level of priority for setting unit position and to be used in scripted
<dt class="note">Unknown
FSM's. This command will have no effect in regular scripts.
<dd class="note">This command is the lowest level of priority for setting unit position and to be used in scripted
 
FSM's.<br>
The current priorities are:
The current priorities are:
* 1. Unit pos commanded (from the commanding menu, higher priority).
* 1. Unit pos commanded (from the commanding menu, higher priority).
Line 46: Line 52:
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
Command most likely only works if run before [[join]] into group after [[createUnit array]].


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETUNITPOSWEAK]]
[[Category:Scripting Commands|SETUNITPOSWEAK]]
[[Category:Scripting Commands ArmA|SETUNITPOSWEAK]]
[[Category:Scripting Commands Armed Assault|SETUNITPOSWEAK]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 20:25, 25 September 2020

-wrong parameter ("Arma") defined!-1.04
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.

Bottom Section