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

Place to get help with not working mods / modding interface.
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 587
Joined: Tue May 19, 2015 1:56 am
Contact:

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

Post 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.
Image
gheift
Fast Inserter
Fast Inserter
Posts: 188
Joined: Tue Mar 03, 2015 9:20 pm
Contact:

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

Post by gheift »

I would like to have this, too: viewtopic.php?p=273746#p273746
Post Reply

Return to “Modding help”