(script continuous pedz
(ai_look_at_object check1-biped1 check1-biped2)
(ai_look_at_object check1-biped2 check1-biped1)
(ai_attach check1-biped1 encounter)
(ai_attach check1-biped2 encounter)
(objects_attach check1 "biped1" check1-biped1 "head")
(objects_attach check1 "biped2" check1-biped2 "head")
(sleep 5)
)
(script continuous pickup
(sleep_until (and (objects_can_see_object peli1-biped1 hog2 45) (objects_can_see_object peli1-biped2 hog2 45)) 1)
<blah>
)
Place two bipeds, and a item that you want them to attach too; this attach item has markers called biped1 and biped2 (where the bipeds will sit)
If anything comes between the bipeds, it will continue the script to the <blah> portion.
And if you want a single command to do all this, go to h2v instead, where the object_distance command exists (man I love that command).