Arma 3 Scripting

Command in Object Manipulation

getWaterLeakiness

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

Description

Get an object's water intake ratio when immersed.

Syntax

getWaterLeakiness obj

Parameters:

Returns: Number in range 0..1 - 0 is waterproof and 1 is full leak

Examples

Example 1

if (getWaterLeakiness _myCar > 0) then
{
    hint "don't go in the water with it!";
};

See also

setWaterLeakiness · setWaterFillPercentage · getWaterFillPercentage