Add a method to get contents of an entire fluid system
Posted: Mon Jan 06, 2025 7:59 pm
Would it be possible to add a method to be able to get the contents of an entire fluid system?
Essentially I just want to know what fluid is used for the highlight visualization when a player selects one of the pipes. I've tried using `get_fluid_segment_contents()`, but certain entities like pumps end the segment. So in the case where a pump has pushed all the heavy oil out of a pipe segment and into a storage tank, if a player hovers the empty pipe segment the highlight will be red, but get_fluid_segment_contents will not return the heavy oil in the other part of the system.
It would be really nice to have a way to know what fluids are in the whole system (ideally the same as what the base game uses to determine highlight visualization color), or even just some way to get the connected fluid segments so I could crawl and query them without needing to iterate each connected fluidbox.
Thank you!
Essentially I just want to know what fluid is used for the highlight visualization when a player selects one of the pipes. I've tried using `get_fluid_segment_contents()`, but certain entities like pumps end the segment. So in the case where a pump has pushed all the heavy oil out of a pipe segment and into a storage tank, if a player hovers the empty pipe segment the highlight will be red, but get_fluid_segment_contents will not return the heavy oil in the other part of the system.
It would be really nice to have a way to know what fluids are in the whole system (ideally the same as what the base game uses to determine highlight visualization color), or even just some way to get the connected fluid segments so I could crawl and query them without needing to iterate each connected fluidbox.
Thank you!