Page 1 of 1

Get connected pipes (fluidboxes)?

Posted: Sun May 22, 2016 9:32 pm
by savi
Hey,

I have a entity with a fluidbox and access it with fluidbox[1], but I want to access the fluidbox attached to it, how can I do that?

Image

Thanks in advance

Savi

Re: Get connected pipes (fluidboxes)?

Posted: Tue May 24, 2016 3:25 pm
by savi
I guess it's not the fact that no one wants to share the awesome solution with me but more the fact that it's not possible right now?

Re: Get connected pipes (fluidboxes)?

Posted: Tue May 24, 2016 3:29 pm
by keyboardhack
I intended to answer this sooner but forgot.

It's possible. I assume you want to get the fluid box of the pipe the arrow is pointing at from the machines fluid box
If the machine only has 1 fluidbox then you can do it like this.

Code: Select all

machine.neighbours[1].fluidbox[1]
Where machine is the entity of the machine.
You can read more about the neighbours API here