Turning production machines on or off?

Place to get help with not working mods / modding interface.
Post Reply
iUltimateLP
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sun May 24, 2015 4:41 pm
Contact:

Turning production machines on or off?

Post by iUltimateLP »

Hi guys,
I had the idea to create a lever where you can switch e.g. furnaces on or off. Is there any entity flag or function to disable production? My alternative idea would be to store the fuel amount inside the machine, remove it, and if lever activates again, the fuel amount will be put in again. But that only works for Burner furnaces.
Thanks for help!

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Turning production machines on or off?

Post by L0771 »

[entity].active = false
[entity] is the furnace or whatever, with true this entity activates again.

This works with all entities i think.

iUltimateLP
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sun May 24, 2015 4:41 pm
Contact:

Re: Turning production machines on or off?

Post by iUltimateLP »

L0771 wrote:[entity].active = false
[entity] is the furnace or whatever, with true this entity activates again.

This works with all entities i think.
Thanks!

Post Reply

Return to “Modding help”