---
name: "getWaterFillPercentage"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "2.16"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getWaterFillPercentage
revid: 363321
updated: 2024-03-26T16:41:39Z
---

# getWaterFillPercentage

*Command · Object Manipulation · Arma 3 v2.16*

Locality: arguments **local**

## Description

Get an object's water filling.

## Syntax

```sqf
getWaterFillPercentage obj
```

**Parameters:**

- `obj`: [Object](../topics/Object.md) - object to manipulate

**Returns:** [Number](../topics/Number.md) - water level in range 0..1 (empty to full)

## Examples

### Example 1

```sqf
if (getWaterFillPercentage _myCar > 0) then
{
    hint "My feet are wet.";
};
```

## See also

[setWaterLeakiness](../commands/setWaterLeakiness.md) · [getWaterLeakiness](../commands/getWaterLeakiness.md) · [setWaterFillPercentage](../commands/setWaterFillPercentage.md)

<sub>Source: [BI Community Wiki — getWaterFillPercentage](https://community.bistudio.com/wiki/getWaterFillPercentage) (revision 363321).</sub>
