getOxygenRemaining unitName

Operand types

unitName: Object

Type of returned value

Description

Returns amount of remaining oxygen for given unit.
Value is between 0 and 1.

Used In

Arma3

Example

_oxygen = getOxygenRemaining player;
if (_oxygen <= 0.1) then {
hint "WARNING! You're running out of oxygen";
};
Search OFPEC COMREF

Advertisement