Page 1 of 1

Turning production machines on or off?

Posted: Sun May 24, 2015 4:44 pm
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!

Re: Turning production machines on or off?

Posted: Sun May 24, 2015 4:45 pm
by L0771
[entity].active = false
[entity] is the furnace or whatever, with true this entity activates again.

This works with all entities i think.

Re: Turning production machines on or off?

Posted: Sun May 24, 2015 4:55 pm
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!