Created
February 25, 2012 00:56
-
-
Save Brianetta/1904991 to your computer and use it in GitHub Desktop.
Replacement fuel warning script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace data/modules/System/OutOfFuel.lua with this