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

# setWaterFillPercentage

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

Locality: arguments **local** · effect **local**

## Description

Set an object's water filling.

## Syntax

```sqf
obj setWaterFillPercentage level
```

**Parameters:**

- `obj`: [Object](../topics/Object.md) - object to manipulate
- `level`: [Number](../topics/Number.md) - water level in range 0..1 (empty to full)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

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

## See also

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

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