lifeState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|arg= global |Multiplayer Arguments=
|arg= global


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


| Returns the life state of the given unit.
| Returns the life state of the given unit.
Line 30: Line 30:
{{!}}}
{{!}}}


{{Feature|arma3 | In {{arma3}}, [[lifeState]] seems to change to "INJURED" when {{Inline code | [[damage]] aliveUnit >{{=}} 0.1}} (0.1 seeming to be the value defined in config under {{sic|"InjuredTreshold"}}).}} |DESCRIPTION=
{{Feature|arma3 | In {{arma3}}, [[lifeState]] seems to change to "INJURED" when {{Inline code | [[damage]] aliveUnit >{{=}} 0.1}} (0.1 seeming to be the value defined in config under {{sic|"InjuredTreshold"}}).}}


| [[lifeState]] unit |SYNTAX=
| [[lifeState]] unit


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]


| [[String]] |RETURNVALUE=
| [[String]]


|x1= <code>[[private]] _lifeState = [[lifeState]] [[player]];</code> |EXAMPLE1=
|x1= <code>[[private]] _lifeState = [[lifeState]] [[player]];</code>


| [[setUnconscious]] |SEEALSO=
| [[setUnconscious]]


|  |MPBEHAVIOUR=
|  |MPBEHAVIOUR=

Revision as of 02:03, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns the life state of the given unit.
Arma 2 Arma 3
  • "ALIVE"
  • "DEAD"
  • "DEAD-RESPAWN"
  • "DEAD-SWITCHING"
  • "ASLEEP"
  • "UNCONSCIOUS"
  • "HEALTHY"
  • "DEAD"
  • "DEAD-RESPAWN"
  • "DEAD-SWITCHING"
  • "INCAPACITATED"
  • "INJURED"
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).
Groups:
Object Manipulation

Syntax

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

Examples

Example 1:
private _lifeState = lifeState player;

Additional Information

See also:
setUnconscious

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section