Arma 3 Scripting

getLeaning

  • Global argument
  • Arma 3 v2.18

Command · Markdown · JSON · 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