Code: Select all
zipline()
{
svt_zip = getent ("svt_zip","targetname"); //The handles
svt_zip_trig = getent ("svt_zip_trig","targetname");
org_start = (1382,2698,1206); //I set this to where the handles are
while (1)
{
svt_zip_trig waittill ("trigger",user);
user setOrigin( (1382,2698,1136) ); //That is right below the handles
user linkto(svt_zip);
svt_zip moveto((1382, 4228, -326), 6, 4, 2); //That is where i want the handles to end up in coordinates
svt_zip waittill ("movedone");
wait 0.5;
user unlink();
svt_zip moveto((org_start), 6, 4, 2);
svt_zip waittill ("movedone");
wait 1;
}
}