Code: Select all
trap4()
{
trap4=getent("trap4","targetname");
trap4_trigger=getent("trap4_trigger","targetname");
while(1)
{
trap4_trigger waittill ("trigger");
trap4 movez (224,4,1,1);
wait(10)
trap4 movez (-224,4,1,1);
wait(4)
}
}
Code: Select all
trap4 movez (-224,4,1,1);
Thanks