ACE3/addons/refuel/functions/fnc_setFuel.sqf
Githawk 5e103ba398 Added nozzle
Added code for nozzle object
Params and private update
2016-02-02 15:03:06 +01:00

25 lines
457 B
Plaintext

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