Fluid connection from prototype
Fluid connection from prototype
Does anyone knows if it's possible to get relative/absolute positions where a game entity could connect to pipe? Essentially get fluid_box.pipe_connections or fluid_boxes[1].pipe_connections from entity prototype?
Re: Fluid connection from prototype
If a connected entity already exists on the map, you can do:
I don't think it's possible to examine a connection that has not been placed yet. Fluid boxes are being reworked in 0.17, so put in a Modding interface request if you want it added.
Code: Select all
for _,c in pairs(fluidbox.get_connections(1)) do
game.print(c.owner.position)
end
Re: Fluid connection from prototype
I though so as well. I won't need it in 0.17 since my mod is trying to do the fluid optimalisation before 0.17 is released.