{"name":"stance","operator":null,"title":"stance","type":"command","url":"https://community.bistudio.com/wiki/stance","revid":363221,"updated":"2024-03-25T22:48:35Z","groups":["Unit Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns the stance of the given unit.","syntaxes":[{"syntax":"stance unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"String","types":["String"],"description":"can be: - `\"STAND\"` - `\"CROUCH\"` - `\"PRONE\"` - `\"UNDEFINED\"` (for example, swimming) - `\"\"` (on non-person object)","text":"String - can be:\n- `\"STAND\"`\n- `\"CROUCH\"`\n- `\"PRONE\"`\n- `\"UNDEFINED\"` (for example, swimming)\n- `\"\"` (on non-person object)"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\nif (stance player == \"STAND\") then { hint \"I am standing!\" };\n```","code":["if (stance player == \"STAND\") then { hint \"I am standing!\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["animationState","unitPos","pose","getLeaning"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Control","Introduced with Arma 3 version 0.50","Scripting Commands"]}