Warning: file_put_contents(/ff_397974628734f0d988e63f8275ce8b4ff600eab36477accc.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