I figured out how to read the signal that comes to the combinator, but didn't figure out how to output it.
I call
Code: Select all
entity.get_or_create_control_behavior ()
Sorry for my googletranslate
Code: Select all
entity.get_or_create_control_behavior ()
Code: Select all
local entity = game.surfaces.nauvis.find_entity("constant-combinator", {85.5, -72.5})
local control = entity.get_or_create_control_behavior()
control.enabled = true -- This turned on the constant combinator (was previously off)