incapacitatedState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
No edit summary
Line 45: Line 45:
<dd class="note">
<dd class="note">
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.
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.
</dd>
</dl>
<!-- DISCONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on December 29, 2019 - 21:13 (UTC)</dd>
<dt class="note">[[User:Tankbuster|Tankbuster]]</dt>
<dd class="note">
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
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 23:13, 29 December 2019

Hover & click on the images for description

Description

Description:
Returns the incapacitated state of the given unit.
Groups:
Uncategorised

Syntax

Syntax:
incapacitatedState person
Parameters:
person: Object
Return Value:
String

Examples

Example 1:
_result = incapacitatedState 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

Notes

Bottom Section

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