Refuel Functions

ace_refuel_fnc_getCapacity

Description

Gets the capacity of a fuel source’s tank.

Parameters

Index Description Datatype(s) Default Value
0 Fuel Source OBJECT  

Return Value

Description Datatype(s)
Fuel capacity NUMBER

Example

[fuelTruck] call ace_refuel_fnc_getCapacity

Authors

  • QuantX

ace_refuel_fnc_getFuel

Description

Get the remaining fuel amount.

Parameters

Index Description Datatype(s) Default Value
0 Fuel Source OBJECT  

Return Value

Description Datatype(s)
Fuel left (in liters) NUMBER

Example

[fuelTruck] call ace_refuel_fnc_getFuel

Authors

  • GitHawk
  • Jonpas

ace_refuel_fnc_makeJerryCan

Description

Makes an object into a jerry can.

Parameters

Index Description Datatype(s) Default Value
0 Target OBJECT  
1 Fuel amount (in liters) NUMBER  

Return Value

None

Example

[can] call ace_refuel_fnc_makeJerryCan

Authors

  • GitHawk

ace_refuel_fnc_makeSource

Description

Makes an object into a refuel source. Run on server only.

Parameters

Index Description Datatype(s) Default Value
0 Fuel Source OBJECT  
1 Fuel amount (in liters) NUMBER 0
2 Hooks positions ARRAY [[0,0,0]]

Return Value

None

Example

[cursorObject, 100] call ace_refuel_fnc_makeSource

Authors

  • Dystopian

ace_refuel_fnc_setFuel

Description

Set the remaining fuel amount.

Parameters

Index Description Datatype(s) Default Value
0 Fuel Source OBJECT  
1 Amount (in liters) NUMBER  

Return Value

None

Example

[fuelTruck, 42] call ace_refuel_fnc_setFuel

Authors

  • GitHawk