Skip to content

Instantly share code, notes, and snippets.

@Brianetta
Created February 25, 2012 00:56
Show Gist options
  • Select an option

  • Save Brianetta/1904991 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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