TiRekS Posted July 23, 2018 Share Posted July 23, 2018 When take gas from pump, the amount of gas in pump does not change. There is a function in the ISTakeFuel function ISTakeFuel:perform() while self.petrolCan:getUsedDelta() < 1 and tonumber(self.square:getProperties():Val("fuelAmount")) > 0 do self.petrolCan:setUsedDelta(self.petrolCan:getUsedDelta() + self.petrolCan:getUseDelta()); -- FIXME: sync in multiplayer self.square:getProperties():Set("fuelAmount", (tonumber(self.square:getProperties():Val("fuelAmount")) - 1) .. ""); end -- needed to remove from queue / start next. ISBaseTimedAction.perform(self); end and it looks like it does not work in SP too, because the level of gas is always 100(at least at the stations I tested). Please, fix it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now