Description
Returns the leaning factor of the given unit.
Syntax
getLeaning unit
Parameters:
unit: Object
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