Arma 3 Scripting

setOxygenRemaining

  • Arma 3 v0.50

Command · Markdown · JSON · original wiki page

Description

Sets oxygen remaining. It has no effect when soldier is not diving.

Syntax

unit setOxygenRemaining value

Parameters:

Returns: Nothing

Examples

Example 1

if (!isAbleToBreathe player) then
{
    player setOxygenRemaining 0; // drowns player
};

See also

isAbleToBreathe · getOxygenRemaining