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:
|
* Example:
|
||||||
* [fuelTruck] call ace_refuel_fnc_getFuel
|
* [fuelTruck] call ace_refuel_fnc_getFuel
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: Yes
|
||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
params [["_target", objNull, [objNull]]];
|
params [["_target", objNull, [objNull]]];
|
||||||
|
|
||||||
|
if (isNull _target) exitWith {0};
|
||||||
|
|
||||||
private _fuel = _target getVariable QGVAR(currentFuelCargo);
|
private _fuel = _target getVariable QGVAR(currentFuelCargo);
|
||||||
|
|
||||||
if (isNil "_fuel") then {
|
if (isNil "_fuel") then {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Example:
|
* Example:
|
||||||
* [fuelTruck, 42] call ace_refuel_fnc_setFuel
|
* [fuelTruck, 42] call ace_refuel_fnc_setFuel
|
||||||
*
|
*
|
||||||
* Public: No
|
* Public: Yes
|
||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user