need elevator script help

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

Moderator: Core Staff

Locked
creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

need elevator script help

Post by creator » July 10th, 2006, 10:41 pm

i made a working elevator
now i need some help with script
i can make it move with trigger_use

it works good
but the speed wont work good
and it wont go all down
why is that
here is my code
if u know how to make it good and work like a good elevator(speed)
please modifie my script.
thx.

Code: Select all

main()
{
thread jumpsmappy_elevator();
} 

jumpsmappy_elevator()
{
lift90 = getent ("lift90","targetname");
lift_trig90 = getent ("lift_trig90","targetname");

while (1)
{
lift_trig90 waittill ("trigger",user);
iprintln ("Elevator Going Down!");
wait 3;
lift90 movez (-1.344, 7.5, 3.5, 4);
lift90 waittill ("movedone");
wait 3;
lift90 movez (1.344, 7.5, 3.5, 4);
lift90 waittill ("movedone");
wait 1;
}
}
Cod 1 Mapper&Modder&Moddeler

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 10th, 2006, 11:19 pm

lift90 movez (1.344, 7.5, 3.5, 4);

^ that is wrong...

You are telling the lift to move 1.344 inches (1.344 units) do not use dcimals in the first part of the moveZ statement.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » July 11th, 2006, 12:31 am

hmm so i just need to remove the .
so:

Code: Select all

main()
{
thread jumpsmappy_elevator();
}

jumpsmappy_elevator()
{
lift90 = getent ("lift90","targetname");
lift_trig90 = getent ("lift_trig90","targetname");

while (1)
{
lift_trig90 waittill ("trigger",user);
iprintln ("Elevator Going Down!");
wait 3;
lift90 movez (-1344, 7.5, 3.5, 4);
lift90 waittill ("movedone");
wait 3;
lift90 movez (1344, 7.5, 3.5, 4);
lift90 waittill ("movedone");
wait 1;
}
}
right?
p.s
lol i knew something was wrong with it cause it was moving like 1 cm lol
Cod 1 Mapper&Modder&Moddeler

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

Post by Nightmare » July 11th, 2006, 10:31 am

yes that is correct. remove that decimal and it will be better
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]

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » July 11th, 2006, 12:00 pm

Yep thats correct, only other thing I worry about is "lift90"... please tell me there are not 90 lifts? :P
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » July 11th, 2006, 4:34 pm

lol no cmon im not a lift freak :P
i just took the name for test i adjust it later
;)
thanks anyway both
:)
(k)
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » July 11th, 2006, 4:38 pm

o yeah and nightmare how is france?
hot? cold? enjoy :P
Cod 1 Mapper&Modder&Moddeler

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

Post by Nightmare » July 11th, 2006, 5:14 pm

pff, would be alot better here with my comp :P
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]

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » July 11th, 2006, 5:20 pm

next time u go on vacation bring it or a laptop!!:P so u can map there also hehe
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » July 11th, 2006, 5:21 pm

o yeah and nightmare im buying a cod server for jumps
i will put ur jumps on my jumps and more ofcourse lol
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » July 11th, 2006, 5:24 pm

o yeah forgot to tell you m8
ur link to nm_pack.zip aint working
just telling :P
Cod 1 Mapper&Modder&Moddeler

User avatar
Grom
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 738
Joined: March 30th, 2005, 12:29 pm
Location: Norway

Post by Grom » July 11th, 2006, 9:26 pm

o yeah, and the edit button is awesome! :P

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » July 12th, 2006, 12:08 am

:? it is?
o yeah it is :D
Cod 1 Mapper&Modder&Moddeler

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

Post by Nightmare » July 12th, 2006, 1:47 pm

strange that nm_pack link isnt working :? Try codfiles.com they have it.

Oh yeah, problem solved

Oh yeah, topic locked
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]

Locked

Who is online

Users browsing this forum: No registered users and 5 guests