{"name":"getLeaning","title":"getLeaning","type":"command","url":"https://community.bistudio.com/wiki/getLeaning","revid":369757,"updated":"2024-10-08T15:08:56Z","groups":["Unit Control"],"status":"ok","games":{"arma3":"2.18"},"since":"arma3 2.18","arma3_since":"2.18","locality":{"argument":"global"},"description":"Returns the leaning factor of the given unit.","syntaxes":[{"syntax":"getLeaning unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Number","type_expr":"Number","description":"leaning factor from -1 to 1"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["if (getLeaning player < 0) then { systemChat \"player is leaning left\" };"]}],"see_also":["animationState","unitPos","stance","pose"]}