stance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
m (template:command argument fix)
Line 19: Line 19:
| '''stance''' unit |= Syntax
| '''stance''' unit |= Syntax


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


| [[String]] |= RETURNVALUE
| [[String]] |RETURNVALUE=  




|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 10:37, 7 April 2019

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:
Uncategorised

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