Arma 3 Scripting

Command in Unit Control

getLeaning

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the leaning factor of the given unit.

Syntax

getLeaning unit

Parameters:

Returns: Number - leaning factor from -1 to 1

Examples

Example 1

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

See also

animationState · unitPos · stance · pose