Am I missing something about how fluidboxes work? Do I have to wait until there is some amount of fluid in the fluidbox before I can look up amount? I've tested this from so many angles and I just can't figure out why I'm getting an error.
This is the most recent test code I was using to try and figure this out.
local pumps = {}
pumps = game.surfaces["nauvis"].find_entities_filtered({type = "offshore-pump"})
game.players[1].print(#pumps)
for i=1,#pumps do
if pumps.fluidbox ~= nil then
game.players[1].print(pumps.fluidbox.amount)
end
end
Any help would be appreciated! Thanks!!!