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!
Turning production machines on or off?
-
- Long Handed Inserter
- Posts: 66
- Joined: Sun May 24, 2015 4:41 pm
- Contact:
Re: Turning production machines on or off?
[entity].active = false
[entity] is the furnace or whatever, with true this entity activates again.
This works with all entities i think.
[entity] is the furnace or whatever, with true this entity activates again.
This works with all entities i think.
-
- Long Handed Inserter
- Posts: 66
- Joined: Sun May 24, 2015 4:41 pm
- Contact:
Re: Turning production machines on or off?
Thanks!L0771 wrote:[entity].active = false
[entity] is the furnace or whatever, with true this entity activates again.
This works with all entities i think.