connect_neighbour and disconnect_neighbour for Power Switch
Posted: Wed Mar 08, 2017 6:49 pm
Simple enough. Make this two API methods work for power switches:
http://lua-api.factorio.com/latest/LuaE ... _neighbour
http://lua-api.factorio.com/latest/LuaE ... _neighbour
This would enable creating a mod for auto connecting power switches to power poles, which is an often requested feature (specially in relation to blueprinting).
Basically the API should allow specifying copper wire to be used when connecting a power switch entity with a power pole (or the other way around). The source_circuit_id (or target_circuit_id) parameter could naturally refer to the left/right sides of the power switch.
http://lua-api.factorio.com/latest/LuaE ... _neighbour
http://lua-api.factorio.com/latest/LuaE ... _neighbour
This would enable creating a mod for auto connecting power switches to power poles, which is an often requested feature (specially in relation to blueprinting).
Basically the API should allow specifying copper wire to be used when connecting a power switch entity with a power pole (or the other way around). The source_circuit_id (or target_circuit_id) parameter could naturally refer to the left/right sides of the power switch.