Page 1 of 1

Accessing [RW] fluid-turret fluid buffer via scripting?

Posted: Sun Jul 16, 2017 8:28 pm
by Reika
My turret range upgrade research - the one that replaces turrets in-situ with a range-boosted version - should keep the ammo/power/fluids of a turret when replaced. However, flamethrower turrets are posing something of a problem.

Their lua-script 'fluidbox' parameter on the LuaEntity only offers one fluidbox, that of their "pipe connection" (the one that balances with nearby pipes). The capacity-100 internal buffer (called 'fluid_buffer' in the prototype) is not accessible through any means I can find, and that means 100 units of fuel are voided per turret, per upgrade. I want to avoid this.

Re: Accessing [RW] fluid-turret fluid buffer via scripting?

Posted: Mon Jul 17, 2017 8:24 pm
by gheift
I would like to have this, too: viewtopic.php?p=273746#p273746