getLeaning: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.16 |branch= dev |arg= global |gr1= Unit Control |descr= Returns the leaning factor of the given unit. |s1= getLeaning unit...")
 
m (2.16 -> 2.18)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.18
 
|branch= dev
|branch= dev
|arg= global
|arg= global



Latest revision as of 16:15, 8 February 2024

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.18.

Description

Description:
Returns the leaning factor of the given unit.
Groups:
Unit Control

Syntax

Syntax:
getLeaning unit
Parameters:
unit: Object
Return Value:
Number - leaning factor from -1 to 1

Examples

Example 1:
if (getLeaning player < 0) then { systemChat "player is leaning left" };

Additional Information

See also:
animationState unitPos stance pose

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