a script

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » December 12th, 2006, 9:52 pm

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);
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]

HavoC
CJ Fan
CJ Fan
Posts: 104
Joined: September 12th, 2006, 1:27 am

a script

Post by HavoC » December 12th, 2006, 11:18 pm

ok thx

HavoC
CJ Fan
CJ Fan
Posts: 104
Joined: September 12th, 2006, 1:27 am

a script

Post by HavoC » December 13th, 2006, 1:56 am

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,

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » December 13th, 2006, 2:22 am

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]

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests