Page 1 of 1
Event for entity enabled/disabled by circuit condition
Posted: Thu May 18, 2017 9:51 pm
by sparr
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
Posted: Thu May 18, 2017 11:56 pm
by Rseding91
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
Re: Event for entity enabled/disabled by circuit condition
Posted: Wed Apr 10, 2019 10:09 pm
by sparr
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
Posted: Wed Apr 10, 2019 10:42 pm
by Rseding91
I'm not adding an event when an entity goes active/inactive. It would fire too often and slow the entire game down.