mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Make setFuel and getFuel API
This commit is contained in:
parent
0b324336ee
commit
7451d1ee5f
@ -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 {
|
||||
|
@ -12,7 +12,7 @@
|
||||
* Example:
|
||||
* [fuelTruck, 42] call ace_refuel_fnc_setFuel
|
||||
*
|
||||
* Public: No
|
||||
* Public: Yes
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user