Arma 3 Scripting

incapacitatedState

  • Arma 3 v1.00

Command · Markdown · JSON · original wiki page

Description

Returns the incapacitated sub-state of the given unit, when the lifeState of the unit is "INCAPACITATED". Could be one of:

Syntax

incapacitatedState person

Parameters:

Returns: String - incapacitated sub-state (see description) or empty string ""

Examples

Example 1

_result = incapacitatedState player;

See also

setUnconscious · lifeState

Community notes

HazJ

This command returns "SHOOTING" (intentional behaviour?) when checking a unit's state while they are unconscious. Tested with BIS revive. I recommend just using the lifeState command instead.

Tankbuster

Returns "UNCONSCIOUS" when awaiting revive. "" when alive or when awaiting respawn. This means that when a unit dies instantly, ie through drowning, this command will return empty string throughout. As Haz says above, it sometimes show "SHOOTING" when the player is unconscious for reasons that are not clear.