{"name":"BIS_fnc_moduleFuel","title":"BIS fnc moduleFuel","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_moduleFuel","revid":352070,"updated":"2024-02-01T23:24:40Z","groups":["Modules"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"argument":"local","effect":"global"},"description":"Set fuel of linked units' **vehicles**.\n\n> [!NOTE]\n> Regarding locality: unit's **vehicle** must be local to the machine, the unit itself can be remote.","syntaxes":[{"syntax":"[logic, units, isActivated] call BIS_fnc_moduleFuel","params":[{"name":"logic","type":"Object","description":"the logic. Possible setVariable parameter:\n\n- \"value\": Number - (Optional, default 0) wanted fuel level, in range 0..1","type_expr":"Object"},{"name":"units","type":"Array of Objects","description":"list of units","type_expr":"Array<Object>"},{"name":"isActivated","type":"Boolean","optional":true,"default":"true","description":"if true, the fuel is set","type_expr":"Boolean","text":"isActivated: Boolean - (Optional, default true) if true, the fuel is set"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when done, even if isActivated equals false","text":"Boolean - true when done, even if *isActivated* equals false"}}],"examples":[{"code":["[myLogic, [unit1, unit2, vehicle1], true] call BIS_fnc_moduleFuel;"]}],"see_also":["fuel","setFuel"]}