/* * Author: GitHawk * Set the remaining fuel amount. * * Arguments: * 0: Fuel Truck * 1: Amount (in liters) * * Return Value: * None * * Example: * [fuelTruck, 42] call ace_refuel_fnc_setFuel * * Public: No */ #include "script_component.hpp" private ["_maxFuel"]; params ["_target", "_fuel"]; if (isNull _target || {isNil "_fuel"}) exitWith {}; _target setVariable [QGVAR(currentFuelCargo), _fuel, true];