Event for entity enabled/disabled by circuit condition

Things that we aren't going to implement
sparr
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Event for entity enabled/disabled by circuit condition

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14601
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Event for entity enabled/disabled by circuit condition

Post 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
If you want to get ahold of me I'm almost always on Discord.
sparr
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Event for entity enabled/disabled by circuit condition

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14601
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Event for entity enabled/disabled by circuit condition

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Won't implement”