If you have occluded areas, like in that raycast demo, you might use the Line of Sight behavior which has a "Has LOS to object" condition. And then you could draw your rope between the points.
LOS: https://www.construct.net/en/make-games/manuals/construct-3/behavior-reference/line-of-sight