incapacitatedState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}} " to "")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 20: Line 20:
|x1= <code>_result = [[incapacitatedState]] [[player]];</code>
|x1= <code>_result = [[incapacitatedState]] [[player]];</code>


| [[setUnconscious]] [[lifeState]]
|seealso= [[setUnconscious]] [[lifeState]]
}}
}}



Revision as of 23:49, 16 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

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

Examples

Example 1:
_result = incapacitatedState player;

Additional Information

See also:
setUnconscious lifeState

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
Posted on July 18, 2018 - 02:53 (UTC)
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.
Posted on December 29, 2019 - 21:13 (UTC)
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.