stance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:


|0.50|= Game version
|0.50|= Game version
|arg= global |= Arguments in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the stance of given unit|= Description
| Returns the stance of given unit - can be "STAND", "CROUCH", "PRONE", "UNDEFINED" (for example, swimming) or "" (on non-human [[Object|object]]) |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 19:




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


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[animationState]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 01:41, 10 April 2014

Hover & click on the images for description

Description

Description:
Returns the stance of given unit - can be "STAND", "CROUCH", "PRONE", "UNDEFINED" (for example, swimming) or "" (on non-human 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 now!"; };

Additional Information

See also:
animationState

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