Constant Combinator On/Off switch

justarandomgeek
Filter Inserter
Filter Inserter
Posts: 304
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Constant Combinator On/Off switch

Post by justarandomgeek »

I'd like to be able to read/set the On/Off switch on a constant combinator via lua. This would allow me to make a "pushbutton" mod that emits single-tick pulses of the configured signal when pressed via a hotkey.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Constant Combinator On/Off switch

Post by aubergine18 »

Does the recently added enabled/disabled property of entities handle this?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 304
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Constant Combinator On/Off switch

Post by justarandomgeek »

aubergine18 wrote:Does the recently added enabled/disabled property of entities handle this?
RSeding told me on IRC that it's not currently possible. Also, LuaEntity does not appear to have enabled/disabled?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15997
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Constant Combinator On/Off switch

Post by Rseding91 »

added for 0.13.18.
If you want to get ahold of me I'm almost always on Discord.
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 304
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Constant Combinator On/Off switch

Post by justarandomgeek »

Rseding91 wrote:added for 0.13.18.
Thanks!
Post Reply

Return to “Implemented mod requests”