incapacitatedState: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 11: | Line 11: | ||
* "SHOOTING" | * "SHOOTING" | ||
|s1= | |s1= '''incapacitatedState''' person | ||
|p1= person: [[Object]] | |p1= person: [[Object]] |
Revision as of 22:12, 19 June 2021
Description
- Description:
- Returns the incapacitated sub-state of the given unit, when the lifeState of the unit is "INCAPACITATED". Could be one of:
- "UNCONSCIOUS"
- "MOVING"
- "SHOOTING"
- Groups:
- Object Manipulation
Syntax
- Syntax:
- incapacitatedState person
- Parameters:
- person: Object
- Return Value:
- String - incapacitated sub-state (see description) or empty string ""
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.