---
name: "BIS_fnc_moduleFuel"
type: function
status: ok
groups: ["Modules"]
arma3_since: "1.00"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_moduleFuel
revid: 352070
updated: 2024-02-01T23:24:40Z
---

# BIS_fnc_moduleFuel

*Function · Modules · Arma 3 v1.00*

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

## Description

Set fuel of linked units' **vehicles**.

> [!NOTE]
> Regarding locality: unit's **vehicle** must be local to the machine, the unit itself can be remote.

## Syntax

```sqf
[logic, units, isActivated] call BIS_fnc_moduleFuel
```

**Parameters:**

- `logic`: [Object](../topics/Object.md) - the logic. Possible [setVariable](../commands/setVariable.md) parameter:
  - "value": [Number](../topics/Number.md) - (Optional, default 0) wanted fuel level, in range 0..1
- `units`: [Array](../topics/Array.md) of [Object](../topics/Object.md)s - list of units
- `isActivated`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md)) if [true](../commands/true.md), the fuel is set

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when done, even if *isActivated* equals [false](../commands/false.md)

## Examples

### Example 1

```sqf
[myLogic, [unit1, unit2, vehicle1], true] call BIS_fnc_moduleFuel;
```

## See also

[fuel](../commands/fuel.md) · [setFuel](../commands/setFuel.md)

<sub>Source: [BI Community Wiki — BIS fnc moduleFuel](https://community.bistudio.com/wiki/BIS_fnc_moduleFuel) (revision 352070).</sub>
