Code: Select all
main()
{
thread e1();
}
e1()
{
b1 = getent ("b1","targetname");
f1 = getent ("f1","targetname");
l1 = getent ("l1","targetname");
r1 = getent ("r1","targetname");
bottom1 = getent ("bottom1","targetname");
trigger = getent ("e1","targetname");
b1b = getent ("b1b","targetname");
f1b = getent ("f1b","targetname");
l1b = getent ("l1b","targetname");
r1b = getent ("r1b","targetname");
while(1)
{
trigger waittill ("trigger");
bottom1 moveZ (2,1,0.5,0.5);
b1b moveX (-40,1,0.5,0.5);
f1b moveX (40,1,0.5,0.5);
l1b moveY (40,1,0.5,0.5);
r1b moveY (-40,1,0.5,0.5);
wait(1);
b1b moveX (40,1,0.5,0.5);
f1b moveX (-40,1,0.5,0.5);
l1b moveY (-40,1,0.5,0.5);
r1b moveY (40,1,0.5,0.5);
wait(1);
b1 moveZ (66,1,0.5,0.5);
f1 moveZ (66,1,0.5,0.5);
l1 moveZ (66,1,0.5,0.5);
r1 moveZ (66,1,0.5,0.5);
wait(1);
b1 moveX (-8,1,0.5,0.5);
f1 moveX (8,1,0.5,0.5);
l1 moveY (8,1,0.5,0.5);
r1 moveY (-8,1,0.5,0.5);
r1 waittill ("movedone");
wait(2);
bottom1 moveZ (318,2,0.5,0.5);
b1 moveZ (318,2,0.5,0.5);
f1 moveZ (318,2,0.5,0.5);
l1 moveZ (318,2,0.5,0.5);
r1 moveZ (318,2,0.5,0.5);
r1 waittill ("movedone");
wait(1);
bottom1 moveX (-184,2,0.5,0.5);
b1 moveX (-184,2,0.5,0.5);
f1 moveX (-184,2,0.5,0.5);
l1 moveX (-184,2,0.5,0.5);
r1 moveX (-184,2,0.5,0.5);
r1 waittill ("movedone");
wait(2);
bottom1 moveX (-52,2,0.5,0.5);
bottom1 waittill ("movedone");
wait(2);
bottom1 moveZ (-320,1,0.5,0.5);
b1 moveX (192,1,0.5,0.5);
wait(1);
bottom1 moveX (236,1,0.5,0.5);
f1 moveX (176,1,0.5,0.5);
l1 moveX (184,1,0.5,0.5);
r1 moveX (184,1,0.5,0.5);
wait(1);
l1 moveY (-8,1,0.5,0.5);
r1 moveY (8,1,0.5,0.5);
wait(1);
b1 moveZ (-384,1,0.5,0.5);
f1 moveZ (-384,1,0.5,0.5);
l1 moveZ (-384,1,0.5,0.5);
r1 moveZ (-384,1,0.5,0.5);
r1 waittill ("movedone");
}
}
That's the script for the lift at the end of the map - can you see any reason for it to only do it once?