Add radius_visualisation_specification to scripting api
Posted: Sun Jan 29, 2023 7:28 am
Currently we have this value for entity prototypes:
However, it cannot be read during runtime.
Could it be added to LuaEntityPrototype?
I have a scripted mining drill that uses this property, and would rather not hardcode the range in two places.
Code: Select all
radius_visualisation_specification = {
sprite = {
filename = '__base__/graphics/entity/electric-mining-drill/electric-mining-drill-radius-visualization.png',
width = 10,
height = 10
},
distance = 12.5,
offset = {0, -16}
}
Could it be added to LuaEntityPrototype?
I have a scripted mining drill that uses this property, and would rather not hardcode the range in two places.