stance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (See also)
(format)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the stance of given unit - can be "STAND", "CROUCH", "PRONE", "UNDEFINED" (for example, swimming) or "" (on non-human [[Object|object]]) |= Description
| Returns the stance of the given unit. It can be one of:
* <tt>"STAND"</tt>
* <tt>"CROUCH"</tt>
* <tt>"PRONE"</tt>
* <tt>"UNDEFINED"</tt> (for example, swimming)
* <tt>""</tt> (on non-person [[Object|object]]) |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 19: Line 24:




|x1= <code>if (stance player == "STAND") then { hint "I am standing now!"; };</code>|= EXAMPLE1  
|x1= <code>[[if]] ([[stance]] [[player]] == "STAND") [[then]] {[[hint]] "I am standing!"};</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 19:32, 23 June 2017

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