How to check if a reactor is currently burning fuel in control.lua?
-
- Inserter
- Posts: 30
- Joined: Thu Mar 07, 2019 4:25 pm
- Contact:
How to check if a reactor is currently burning fuel in control.lua?
I hope you understand what I mean by this
Re: How to check if a reactor is currently burning fuel in control.lua?
Code: Select all
if reactor.burner.currently_burning then
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
-
- Inserter
- Posts: 30
- Joined: Thu Mar 07, 2019 4:25 pm
- Contact:
Re: How to check if a reactor is currently burning fuel in control.lua?
Thank you! I didn't even know about the API before.Bilka wrote: ↑Sat Sep 14, 2019 3:08 pmhttps://lua-api.factorio.com/latest/Lua ... ity.burner -> https://lua-api.factorio.com/latest/Lua ... ly_burningCode: Select all
if reactor.burner.currently_burning then