Arma 3 Scripting

Command in Object Manipulation

setWaterFillPercentage

Also available as Markdown and JSON, or read the original wiki page.

Description

Set an object's water filling.

Syntax

obj setWaterFillPercentage level

Parameters:

Returns: Nothing

Examples

Example 1

if (getWaterLeakiness _myCar > 0 && surfaceIsWater getPosASL _myCar) then
{
    _myCar setWaterFillPercentage 1;
    hint "I told you not to go in the water!";
};

See also

setWaterLeakiness · getWaterLeakiness · getWaterFillPercentage