Page 2 of 2

Posted: December 12th, 2006, 9:52 pm
by Nightmare
it probably went out of the map, make it slower so you can watch where it goes and correct it.
platform moveY (88,4,0.3,0.3);

a script

Posted: December 12th, 2006, 11:18 pm
by HavoC
ok thx

a script

Posted: December 13th, 2006, 1:56 am
by HavoC
when i use this script for my map it says theres an unknown function do you know wut it is?

Code: Select all

main()
{
thread platform();
thread platform1();
thread platform2();
thread platform3();
thread platform4();
thread platform5();
thread platform6();
thread platform7();
thread platform8();
thread platform9();
thread platform10();
thread box1();
thread box2();
}

platform()
{
platform = getent ("platform","targetname");
while(1)
{
platform moveY (434,1,0.5,0.5);
platform waittill ("movedone");
wait(0);
platform moveZ (-434,1,0.5,0.5);
platform waittill ("movedone");
}
}

platform1()
{
platform1 = getent ("platform1","targetname");
while(1)
{
platform1 moveZ (-434,1,0.5,0.5);
platform1 waittill ("movedone");
wait(0);
platform1 moveZ (434,1,0.5,0.5);
platform1 waittill ("movedone");
}
}

platform2()
{
platform2 = getent ("platform2","targetname");
while(1)
{
platform2 moveZ (362,1,0.5,0.5);
platform2 waittill ("movedone");
wait(0);
platform2 moveZ (-362,1,0.5,0.5);
platform2 waittill ("movedone");
}
}

platform3()
{
platform3 = getent ("platform3","targetname");
while(1)
{
platform3 moveY (183,1,0.5,0.5);
platform3 waittill ("movedone");
wait(0);
platform3 moveY (-183,1,0.5,0.5);
platform3 waittill ("movedone");
}
}


box1()
{
box1 = getent ("box1","targetname");
while(1)
{
box1 moveZ (-280,1,0.5,0.5);
box1 waittill ("movedone");
wait(0);
box1 moveZ (280,1,0.5,0.5);
box1 waittill ("movedone");
}
}

box2()
{
box2 = getent ("box2","targetname");
while(1)
{
box2 moveZ (-280,1,0.5,0.5);
box2 waittill ("movedone");
wait(0);
box2 moveZ (280,1,0.5,0.5);
box2 waittill ("movedone");
}
}
thx,

Posted: December 13th, 2006, 2:22 am
by Nightmare
try this:

Code: Select all

main()
{
thread platform();
thread platform1();
thread platform2();
thread platform3();
thread box1();
thread box2();
}

platform()
{
platform = getent ("platform","targetname");
while(1)
{
platform moveY (434,1,0.5,0.5);
platform waittill ("movedone");
wait(0);
platform moveZ (-434,1,0.5,0.5);
platform waittill ("movedone");
}
}

platform1()
{
platform1 = getent ("platform1","targetname");
while(1)
{
platform1 moveZ (-434,1,0.5,0.5);
platform1 waittill ("movedone");
wait(0);
platform1 moveZ (434,1,0.5,0.5);
platform1 waittill ("movedone");
}
}

platform2()
{
platform2 = getent ("platform2","targetname");
while(1)
{
platform2 moveZ (362,1,0.5,0.5);
platform2 waittill ("movedone");
wait(0);
platform2 moveZ (-362,1,0.5,0.5);
platform2 waittill ("movedone");
}
}

platform3()
{
platform3 = getent ("platform3","targetname");
while(1)
{
platform3 moveY (183,1,0.5,0.5);
platform3 waittill ("movedone");
wait(0);
platform3 moveY (-183,1,0.5,0.5);
platform3 waittill ("movedone");
}
}


box1()
{
box1 = getent ("box1","targetname");
while(1)
{
box1 moveZ (-280,1,0.5,0.5);
box1 waittill ("movedone");
wait(0);
box1 moveZ (280,1,0.5,0.5);
box1 waittill ("movedone");
}
}

box2()
{
box2 = getent ("box2","targetname");
while(1)
{
box2 moveZ (-280,1,0.5,0.5);
box2 waittill ("movedone");
wait(0);
box2 moveZ (280,1,0.5,0.5);
box2 waittill ("movedone");
}
}