Page 1 of 1

Pipe Input Positions

Posted: Fri May 15, 2015 11:11 am
by Foxy_Boxes
So I don't lua, throw that out there right away. Trying to make input pipe connections for a 1x1 building, what should

Code: Select all

    fluid_boxes =
    {
      {
        production_type = "input",
        pipe_covers = pipecoverspictures(),
        base_area = 10,
        base_level = 0,
        pipe_connections = {{ type="input", position = {0, -2} }}
      }
    },
read? Because I couldn't find anything on the wiki.

Re: Pipe Input Positions

Posted: Fri May 15, 2015 1:25 pm
by Klonan
Fluid boxes are easy once you understand them, but something like this will work

Code: Select all

 fluid_boxes =
    {
      {
        production_type = "input",
        pipe_covers = pipecoverspictures(),
        base_area = 10,
        base_level = 0,
        pipe_connections = {{ type="input", position = {0, 1} }} //here the x , y co-ordinate specifies where the input will go, in this the fluid box will be in the centre at the top
      }
    },