So I'm making a Sim City style game, and I've gotten stuck on this part.
Essentially what needs to happen is that when the power lines are connected to the blue block (power plant) they will cascade down the line to give a value of 1 or On to each of the subsequent power lines along the way. I've tried six ways from Sunday, and still can't seem to get it right. In each test, the power line seems to inherit the value from the surrounding ones, which is fine, but when I bulldoze the middle of a power line set it still retains the previous value and doesn't give a new value to all unconnected power lines (ideally a value of 0 or Off)
Can someone please take a look and see if you can solve it, as it's the only thing holding up further production of the game :'(