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

Place to get help with not working mods / modding interface.
Post Reply
Romner_set
Inserter
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?

Post by Romner_set »

I hope you understand what I mean by this

Bilka
Factorio Staff
Factorio Staff
Posts: 3127
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Romner_set
Inserter
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?

Post 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.

Post Reply

Return to “Modding help”