energy_source - how to access in control.lua

Place to get help with not working mods / modding interface.
RCSub
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Apr 09, 2016 6:23 pm
Contact:

energy_source - how to access in control.lua

Post by RCSub »

Hello everyone

has anyone found a way to read/write what is inside the energy_source part of an entity from within a control.lua script? Eg. for an accumulator at every tick?

Best regards
RCSub
catarix7
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Apr 06, 2016 10:58 pm
Contact:

Re: energy_source - how to access in control.lua

Post by catarix7 »

I am really new but I think you are unable to change existed entities after game start. but you can create a few accumulator types and replace existed type with new one after research is finished
Post Reply

Return to “Modding help”