Page 1 of 1

How to check if a reactor is currently burning fuel in control.lua?

Posted: Sat Sep 14, 2019 3:04 pm
by Romner_set
I hope you understand what I mean by this

Re: How to check if a reactor is currently burning fuel in control.lua?

Posted: Sat Sep 14, 2019 3:08 pm
by Bilka

Re: How to check if a reactor is currently burning fuel in control.lua?

Posted: Sat Sep 14, 2019 3:19 pm
by Romner_set
Bilka wrote: Sat Sep 14, 2019 3:08 pm

Code: Select all

if reactor.burner.currently_burning then
https://lua-api.factorio.com/latest/Lua ... ity.burner -> https://lua-api.factorio.com/latest/Lua ... ly_burning
Thank you! I didn't even know about the API before.