Skip to content

Instantly share code, notes, and snippets.

@Brianetta
Created February 25, 2012 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Brianetta/1904991 to your computer and use it in GitHub Desktop.
Save Brianetta/1904991 to your computer and use it in GitHub Desktop.
Replacement fuel warning script
local onShipFuelChanged = function (ship, state)
if ship:IsPlayer() then
Game.player:SetFuelPercent()
else
if state == "EMPTY" then
print(('{label} ({type}) out of fuel'):interp({label=ship.label,type=ship.shipType}))
end
end
end
EventQueue.onShipFuelChanged:Connect(onShipFuelChanged)
@Brianetta
Copy link
Author

Replace data/modules/System/OutOfFuel.lua with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment