Code: Select all
local control = entity.get_or_create_control_behavior()
if control.use_colors then
control.circuit_condition = {
condition={
first_signal={name="signal-anything",type="virtual"},
comparator="!=",
constant=0,
second_signal=nil
},
connect_to_logistic_network=false
}
end