What I have in my mind is a straight stick that is attached to characters hand from its joint1, and the other end of it, at joint2 tries to keep itself attached to another actor on the map. The prioroty is on joint1 though, so if character moves too far from the other object, the stick will stay pointed towards this another object, but movement is not restricted by it.
What I probably cant do is to attach an actor to two different parents at once just like this, but need something different for the joint2…? Probably something bit more complex I assume.