Arma 3 Scripting

setWaterFillPercentage

  • Local argument
  • Local effect
  • Arma 3 v2.16

Command · Markdown · JSON · 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