platform moveY (88,4,0.3,0.3);
a script
Moderator: Core Staff
it probably went out of the map, make it slower so you can watch where it goes and correct it.
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
a script
when i use this script for my map it says theres an unknown function do you know wut it is?
thx,
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");
}
}
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");
}
}
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
Who is online
Users browsing this forum: No registered users and 0 guests