{"name":"lifeState","title":"lifeState","type":"command","url":"https://community.bistudio.com/wiki/lifeState","revid":329358,"updated":"2022-07-27T12:23:13Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns the life state of the given unit.\n\n| Arma 2 | Arma 3 |\n|---|---|\n| - \"ALIVE\"<br>- \"DEAD\"<br>- \"DEAD-RESPAWN\"<br>- \"DEAD-SWITCHING\"<br>- \"ASLEEP\"<br>- \"UNCONSCIOUS\" | - \"HEALTHY\"<br>- \"DEAD\"<br>- \"DEAD-RESPAWN\"<br>- \"DEAD-SWITCHING\"<br>- \"INCAPACITATED\"<br>- \"INJURED\" |\n\n> [!NOTE]\n> **Arma 3:** In Arma 3, lifeState seems to change to \"INJURED\" when `damage aliveUnit >= 0.1` (0.1 seeming to be the value defined in config under \"InjuredTreshold\" [sic]). When the state is \"INCAPACITATED\", a sub-state is available via incapacitatedState command.","syntaxes":[{"syntax":"lifeState unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["private _lifeState = lifeState player;"]}],"see_also":["setUnconscious","incapacitatedState"]}