I want to make pathfinding of electricity, so I need to navigate them through the cables. Any way to make reverse pathing of some sort?
Change "Obstacles" from "Solid" to "Custom" on the sprite with the path finding behavior.
I'm not sure if you can reverse it so much easily but this won't automatically use objects with solid behaviors as obstacles, and it can pass through solids. You will then have to set obstacles with your events.
You could try pinning invisible objects on all four sides of your solid sprites and setting those objects as obstacles. You would then have to remove the instances covering the ends somehow when connection is made.