lifeState: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:ArmA 2: New Scripting Commands List\|{{uc:{{PAGENAME}}}}\]\]\s*" to "") |
Lou Montana (talk | contribs) (Fix description) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the life state of the given unit. | | Returns the life state of the given unit. | ||
{{{!}} | |||
! {{arma2}} | |||
*"ALIVE" | ! {{arma3}} | ||
*"DEAD" | {{!}}- | ||
*"DEAD-RESPAWN" | {{!}} | ||
*"DEAD-SWITCHING" | * "ALIVE" | ||
*"ASLEEP" | * "DEAD" | ||
*"UNCONSCIOUS" | * "DEAD-RESPAWN" | ||
* "DEAD-SWITCHING" | |||
* "ASLEEP" | |||
*"HEALTHY" | * "UNCONSCIOUS" | ||
*"DEAD" | {{!}} | ||
*"DEAD-RESPAWN" | * "HEALTHY" | ||
*"DEAD-SWITCHING" | * "DEAD" | ||
*"INCAPACITATED" | * "DEAD-RESPAWN" | ||
*"INJURED" | * "DEAD-SWITCHING" | ||
* "INCAPACITATED" | |||
* "INJURED" | |||
{{!}}} | |||
{{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= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[lifeState]] unit |SYNTAX= | ||
|p1= unit: [[Object]] |PARAMETER1= | |p1= unit: [[Object]] |PARAMETER1= | ||
| [[String]] |RETURNVALUE= | | [[String]] |RETURNVALUE= | ||
|x1= <code>[[private]] _lifeState = [[lifeState]] [[player]];</code> |EXAMPLE1= | |||
|x1= <code> | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setUnconscious]] |SEEALSO= | | [[setUnconscious]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:12, 24 December 2019
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"
- Groups:
- Uncategorised
Syntax
Examples
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