UNN
Vehicles refuelled in game with the Fuel trucks e.t.c never get completely refuelled. After refuelling, rather than returning a value of 1 when the fuel command is called. They return a value greater than 0.98 and less than 1.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Checks how much fuel is left in the gas tank of a vehicle.
fuel vehicle
Parameters:
vehicle: ObjectReturns: Number in range 0..1 - 0 (empty tank) to 1 (full tank).
if (fuel vehicle player == 0) then { hint "The vehicle is out of fuel!" };
setFuel · setFuelCargo · getFuelCargo
Vehicles refuelled in game with the Fuel trucks e.t.c never get completely refuelled. After refuelling, rather than returning a value of 1 when the fuel command is called. They return a value greater than 0.98 and less than 1.
returns