Page 1 of 1

tank max storage ?

Posted: Tue Aug 16, 2016 2:15 pm
by binbinhfr
I red somewhere that storage-tank max capacity is 2500.
But is it possible to make a derivated prototype with another capacity ? (I did not find the variable, but base_area seems to have some influence, even if I don't know how)
And How can I read the max capacity of a tank from control.lua, looking at a tank entity ?

Re: tank max storage ?

Posted: Tue Aug 16, 2016 2:47 pm
by daniel34
To change the size of a storage tank you change its base_area, the value you set is multiplied by 10 in-game. A pipe for example has a base_area of 1.

I don't think there's an easy way to get the storage size in control.lua because the fluid box is not listed in the entity prototype, but here's a workaround: viewtopic.php?f=25&t=7417#p58793

Re: tank max storage ?

Posted: Tue Aug 16, 2016 3:00 pm
by binbinhfr
thx daniel !
very helpful