[Solved] Read unit pollution_to_join_attack value in control.lua?
Posted: Tue Mar 19, 2019 6:39 pm
For the units (specifically biter and spitters), I can access the property pollution_to_join_attack in data.lua.
Is it possible to read it in control.lua?
For example:
EDIT:
Made a modding interface request at viewtopic.php?f=28&t=68120.
EDIT on EDIT:
Implemented in 0.17.19.
Is it possible to read it in control.lua?
For example:
Code: Select all
game.entity_prototypes[unit].localised_name ← Work
game.entity_prototypes[unit].pollution_to_join_attack ← Gives error
Made a modding interface request at viewtopic.php?f=28&t=68120.
EDIT on EDIT:
Implemented in 0.17.19.