[Solved] Read unit pollution_to_join_attack value in control.lua?

Place to get help with not working mods / modding interface.
Post Reply
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

[Solved] Read unit pollution_to_join_attack value in control.lua?

Post by Schallfalke »

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:

Code: Select all

game.entity_prototypes[unit].localised_name ← Work
game.entity_prototypes[unit].pollution_to_join_attack ← Gives error
EDIT:
Made a modding interface request at viewtopic.php?f=28&t=68120.

EDIT on EDIT:
Implemented in 0.17.19.

Post Reply

Return to “Modding help”