lifeState

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Returns the life state of the given unit. Can be one of:

(Pre-Arma 3)
  • "ALIVE"
  • "DEAD"
  • "DEAD-RESPAWN"
  • "DEAD-SWITCHING"
  • "ASLEEP"
  • "UNCONSCIOUS"

(Arma 3)
  • "HEALTHY"
  • "DEAD"
  • "DEAD-RESPAWN"
  • "DEAD-SWITCHING"
  • "INCAPACITATED"
  • "INJURED"

In Arma 3 lifeState seems to change to "INJURED" when damage aliveUnit >= 0.1 (0.1 seems to be the value defined in config under "InjuredTreshold").

Syntax

Syntax:
lifeState unit
Parameters:
unit: Object
Return Value:
String

Examples

Example 1:
_ls = lifeState loon;

Additional Information

Multiplayer:
-
See also:
setUnconscious

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section