hey,
i cant seem to find control behaviors to enable/disable the power switch like the constant combinator has.
am i just missing something to control it?
Power switch control behavior
Re: Power switch control behavior
You just read it like any other control behavior? http://i.imgur.com/254ZaU7.jpg http://lua-api.factorio.com/latest/LuaC ... olBehavior
If you want to get ahold of me I'm almost always on Discord.
Re: Power switch control behavior
sorry for being unclear. i meant the 'enabled' property from LuaConstantCombinatorControlBehavior.
the power-switch doens't have it's own behavior and the disabled property from LuaGenericOnOffControlBehavior is read only.
the power-switch doens't have it's own behavior and the disabled property from LuaGenericOnOffControlBehavior is read only.
i would like to toggle the power-switch via script.enabled :: boolean [Read-Write]
Turns this constant combinator on and off.
Re: Power switch control behavior
Ah I see.
If you want to get ahold of me I'm almost always on Discord.