Warning: file_put_contents(/ff_86322220437cb19a07a9459152e16ee7d28508d7efe6d7f0.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setOxygenRemaining - OFPEC Scripting Command Reference | OFPEC The Editing Center

unitName setOxygenRemaining value

Operand types

unitName: Object
value: Number

Type of returned value

Description

Sets oxygen remaining.
It has no effect when soldier is not diving.
Oxygen remaining is a number between 0 and 1.

Used In

Arma3

Example

if (underWater loon1) then {
loon1 setOxygenRemaining 0;
};
hint "The loon drowned";

Advertisement