B
Belho
Guest
Hi,
I am trying to build a Rimwold-like game.
For now, my colonists can build walls, structures that produce and require energy, and power cables to connect them.
However, I can't seem to figure out a functional and elegant solution to check the continuity of a power cable between, let's say, an iron extractor (which needs energy) and a power source (which produces energy).
The system has to check the continuity of the cable between those two structures and tell the iron extractor that it is plugged to a power source.
Maybe it has been ask before here, but I didn't find any help.
How would you do that?
Thanks a lot!
PS: this is what I would like to obtain, structures connected by cables (blue lines)
I am trying to build a Rimwold-like game.
For now, my colonists can build walls, structures that produce and require energy, and power cables to connect them.
However, I can't seem to figure out a functional and elegant solution to check the continuity of a power cable between, let's say, an iron extractor (which needs energy) and a power source (which produces energy).
The system has to check the continuity of the cable between those two structures and tell the iron extractor that it is plugged to a power source.
Maybe it has been ask before here, but I didn't find any help.
How would you do that?
Thanks a lot!
PS: this is what I would like to obtain, structures connected by cables (blue lines)