Event for entity enabled/disabled by circuit condition
Event for entity enabled/disabled by circuit condition
I need to know when a belt has been enabled/disabled for my belt overflow mod. It would be generally useful for other mods that apply to active but not inactive entities, as well.
Re: Event for entity enabled/disabled by circuit condition
You can check the control behavior on the belt to see if it's enabled or disabled. http://lua-api.factorio.com/latest/LuaC ... r.disabled
If you want to get ahold of me I'm almost always on Discord.
Re: Event for entity enabled/disabled by circuit condition
Checking every belt on the map every tick is prohibitively slow. I want an event so that I don't have to run any extra code if the belts aren't turning on/off.
Re: Event for entity enabled/disabled by circuit condition
I'm not adding an event when an entity goes active/inactive. It would fire too often and slow the entire game down.
If you want to get ahold of me I'm almost always on Discord.