lifeState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
No edit summary
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"}}).}}
{{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"}}). When the state is "INCAPACITATED", a sub-state is available via [[incapacitatedState]] command.}}


| [[lifeState]] unit
| [[lifeState]] unit
Line 40: Line 40:
|x1= <code>[[private]] _lifeState = [[lifeState]] [[player]];</code>
|x1= <code>[[private]] _lifeState = [[lifeState]] [[player]];</code>


| [[setUnconscious]]
| [[setUnconscious]], [[incapacitatedState]]
}}
}}



Revision as of 20:53, 8 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
Return Value:
Return value needed

Examples

Example 1:
private _lifeState = lifeState player;

Additional Information

See also:
See also needed

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