elevator/trigger problems

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

Moderator: Core Staff

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

elevator/trigger problems

Post by creator » July 9th, 2006, 1:53 pm

i made an elevator and made it
script_brushmodel
targetname
elevatormodel1

i also made a brush with trigger texture make it
trigger_multiple
targetname
trig_elevator1

well the problem is:
when i walk thru the trigger elevator wont move
here is my script:


Code: Select all

main() 
{ 
thread jumpsmappy_elevator1(); 
} 

jumpsmappy_elevator1() 
{ 
platform = getent ("elevatormodel","targetname"); 
trigger = getent ("trig_elevator1","targetname"); 
while(1) 
{ 
trigger waittill ("trigger"); 
wait(3); 
elevator moveY (208,2,0.5,0.5); 
wait(5); 
elevator moveY (-208,2,0.5,0.5); 
elevator waittill ("movedone"); 
} 
}
no script compiling errors or anything
just wont move...
i double checked the targetnames
can't see the problem, please help anyone.
Cod 1 Mapper&Modder&Moddeler

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » July 9th, 2006, 2:31 pm

main()
{
thread jumpsmappy_elevator1();
}

jumpsmappy_elevator1()
{
platform = getent ("elevatormodel","targetname");
trigger = getent ("trig_elevator1","targetname");
while(1)
{
trigger waittill ("trigger");
wait(3);
elevator moveY (208,2,0.5,0.5);
wait(5);
elevator moveY (-208,2,0.5,0.5);
elevator waittill ("movedone");
}
}

all the words in bold should be the same, you can name that to anything you want..oh and you said you gave the brushmodel a targetname of "elevatormodel1" but in this line:

Code: Select all

platform = getent ("elevatormodel","targetname");
its just "elevatormodel" make sure that is exactly the same as what the targetname you gave it is :wink:

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

Post by creator » July 9th, 2006, 3:41 pm

ok so this right?:

Code: Select all

main() 
{ 
thread jumpsmappy_elevator1(); 
} 

jumpsmappy_elevator1() 
{ 
elevator = getent ("elevatormodel","targetname"); 
trigger = getent ("trig_elevator1","targetname"); 
while(1) 
{ 
trigger waittill ("trigger"); 
wait(3); 
elevator moveY (208,2,0.5,0.5); 
wait(5); 
elevator moveY (-208,2,0.5,0.5); 
elevator waittill ("movedone"); 
} 
}
o yeah and sorry about that targetname was elevatormodel
i was confused with trig_elevator1 and i was thinking elevatormodel1
but targetnames was right brb i go test it out thanks ;)
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 9th, 2006, 5:02 pm

doesnt work man!

targetnames are good
how come it doesnt work
i corrected the script but still doesn't work!
can u make me a small elevator + script and send me the gsc + .map?
xfire milkshakee
msn:creator-mapper@hotmail.com
Cod 1 Mapper&Modder&Moddeler

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests