mirror of
https://github.com/BeamMP/BeamNG-FuelStations.git
synced 2026-07-12 17:54:00 +00:00
Added Fuel Leak
When the random setting goes off to explode/set fire to the vehicle, it will also set the Fuel Leak Rate to .15 Liters/second.
This commit is contained in:
@@ -26,6 +26,7 @@ local function addFuel()
|
|||||||
if math.random() < 0.002 then
|
if math.random() < 0.002 then
|
||||||
beamstate.breakAllBreakgroups()
|
beamstate.breakAllBreakgroups()
|
||||||
fire.explodeVehicle()
|
fire.explodeVehicle()
|
||||||
|
energyStorage.getStorages().mainTank.currentLeakRate = .15
|
||||||
ui_message("Turn off your engine!", 5, "fuelStationsBoom")
|
ui_message("Turn off your engine!", 5, "fuelStationsBoom")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user