BIS_fnc_moduleFuel
- Local argument
- Global effect
- Arma 3 v1.00
Function · Markdown · JSON · original wiki page
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
[logic, units, isActivated] call BIS_fnc_moduleFuel
Parameters:
logic: Object - the logic. Possible setVariable parameter:- "value": Number - (Optional, default 0) wanted fuel level, in range 0..1
units: Array of Objects - list of unitsisActivated: Boolean - (Optional, default true) if true, the fuel is set
Returns: Boolean - true when done, even if isActivated equals false
Examples
Example 1
[myLogic, [unit1, unit2, vehicle1], true] call BIS_fnc_moduleFuel;