Make setFuel and getFuel API

This commit is contained in:
GitHawk 2016-02-26 10:50:02 +01:00
parent 0b324336ee
commit 7451d1ee5f
2 changed files with 4 additions and 2 deletions

View File

@ -11,12 +11,14 @@
* Example:
* [fuelTruck] call ace_refuel_fnc_getFuel
*
* Public: No
* Public: Yes
*/
#include "script_component.hpp"
params [["_target", objNull, [objNull]]];
if (isNull _target) exitWith {0};
private _fuel = _target getVariable QGVAR(currentFuelCargo);
if (isNil "_fuel") then {

View File

@ -12,7 +12,7 @@
* Example:
* [fuelTruck, 42] call ace_refuel_fnc_setFuel
*
* Public: No
* Public: Yes
*/
#include "script_component.hpp"