{"name":"BIS_fnc_moduleFuel","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"logic","type":"Object","optional":true,"default":"0","description":"the logic. Possible setVariable parameter:\n- \"value\": Number -  wanted fuel level, in range 0..1","types":["Object"],"since":null,"text":"logic: Object - the logic. Possible setVariable parameter:\n- \"value\": Number - (Optional, default 0) wanted fuel level, in range 0..1"},{"name":"units","type":"Array of Objects","optional":false,"default":null,"description":"list of units","types":["Array","Object"],"since":null,"text":"units: Array of Objects - list of units"},{"name":"isActivated","type":"Boolean","optional":true,"default":"true","description":"if true, the fuel is set","types":["Boolean"],"since":null,"text":"isActivated: Boolean - (Optional, default true) if true, the fuel is set"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when done, even if isActivated equals false","text":"Boolean - true when done, even if *isActivated* equals false"}}],"examples":[{"text":"```sqf\n[myLogic, [unit1, unit2, vehicle1], true] call BIS_fnc_moduleFuel;\n```","code":["[myLogic, [unit1, unit2, vehicle1], true] call BIS_fnc_moduleFuel;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["fuel","setFuel"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Modules","Functions","Functions: Global Effect","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}