Page 1 of 1

Expose `fluid-turret` mandatory properties as read-only in LuaEntityPrototype

Posted: Fri Sep 02, 2022 1:20 am
by Muppet9010
At present there isn't a way via the API to check on the amount of fluid needed in a fluid-turret for it to activate. I wanted to do this as a check during an RCON command by Streamers to create and fill up fluid-turrets. To alert them if they were putting in less fluid than the turret required to activate.

This would require exposing the

Code: Select all

fluid_buffer_size
and

Code: Select all

activation_buffer_ratio
properties of a fluid-turret as read only in LuaEntityPrototype.
https://wiki.factorio.com/Prototype/Flu ... uffer_size

However, with these 2 being added there seems no reason not to also add the other mandatory property that may be wanted via runtime API;

Code: Select all

fluid_buffer_input_flow
as another read only field on LuaEntityPrototype.