How to connect two objects automatically with cable component ?

Every object(A and B) has one cable,How to connect two objects automatically with cable component when A’s approaching B in Blueprint ?