{"name":"unitPos","title":"unitPos","type":"command","url":"https://community.bistudio.com/wiki/unitPos","revid":337059,"updated":"2023-01-11T09:38:30Z","groups":["Unit Control"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Return the unit position rules.\nThe return value is always \"Auto\" unless the unit has gotten a setUnitPos command. In that case the value is the last stance the unit was ordered to.\nAvailable modes are listed at setUnitPos.","syntaxes":[{"syntax":"unitPos unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"String","type_expr":"String","description":"one of `\"Auto\"`, `\"Up\"`, `\"Middle\"`, `\"Down\"` (as of Arma 3)"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["hint str unitPos _unit;"]}],"multiplayer":"Unit pos set by setUnitPosWeak is not returned for remote (non-local) units.","see_also":["setUnitPos","setUnitPosWeak","stance","pose"]}