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
energy_source - how to access in control.lua
Re: energy_source - how to access in control.lua
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
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: energy_source - how to access in control.lua
The "energy" value is what you are looking for methinks: http://lua-api.factorio.com/0.12.30/Lua ... tml#energy