stance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 9: Line 8:


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


| Returns the stance of the given unit. It can be one of:  
| Returns the stance of the given unit. It can be one of:  
Line 17: Line 15:
* <tt>"UNDEFINED"</tt> (for example, swimming)
* <tt>"UNDEFINED"</tt> (for example, swimming)
* <tt>""</tt> (on non-person [[Object|object]]) |DESCRIPTION=
* <tt>""</tt> (on non-person [[Object|object]]) |DESCRIPTION=
____________________________________________________________________________________________


| '''stance''' unit |SYNTAX=
| '''stance''' unit |SYNTAX=
Line 28: Line 25:
|x1= <code>[[if]] ([[stance]] [[player]] == "STAND") [[then]] {[[hint]] "I am standing!"};</code>|EXAMPLE1=  
|x1= <code>[[if]] ([[stance]] [[player]] == "STAND") [[then]] {[[hint]] "I am standing!"};</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[animationState]], [[unitPos]] |SEEALSO=  
| [[animationState]], [[unitPos]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 04:58, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns the stance of the given unit. It can be one of:
  • "STAND"
  • "CROUCH"
  • "PRONE"
  • "UNDEFINED" (for example, swimming)
  • "" (on non-person object)
Groups:
Unit Control

Syntax

Syntax:
stance unit
Parameters:
unit: Object
Return Value:
String

Examples

Example 1:
if (stance player == "STAND") then {hint "I am standing!"};

Additional Information

See also:
animationStateunitPos

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

Bottom Section