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

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

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

Post 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.

Post Reply

Return to “Modding interface requests”