Script Needed...

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 » October 23rd, 2006, 12:51 am

There is an easier way you could try is making two buttons one elevatoruptrig and elevatordowntrig
just make sure that the levels are the same distance between each other.

Code: Select all

Elevatorup() 
{
elevator = getent ("elevator","targetname");
trigger = getent ("elevatorup","targetname");
while(1)
{
trigger waittill ("trigger");
elevator moveZ (126,3,0.5,0.5);
elevator waittill ("movedone");
}
}

Elevatordown() 
{
elevator = getent ("elevator","targetname");
trigger = getent ("elevatordown","targetname");
while(1)
{
trigger waittill ("trigger");
elevator moveZ (-126,3,0.5,0.5);
elevator 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]

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

Post by HavoC » October 23rd, 2006, 12:59 am

ok thank you very much, so do i make 2 buttons put a trig use for both then name the button and the trigger elevatorup and elevatordown?


TY :D

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

script needed?

Post by HavoC » October 24th, 2006, 2:15 am

http://www.freewebs.com/codmapping/screenshots.htm this is a link to a screenshot i took of my elevator... the black circles are the trig_use and i named them each elevator up and elevator down , the red just shows my elevator which i made a scrpt brushmodel and named it elevator

does this seem correct? theni just put my gsc in? ty

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

Post by Nightmare » October 24th, 2006, 2:17 am

seems fine, compile it and give it a try
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

script needed

Post by HavoC » October 24th, 2006, 11:58 am

ok thx,,but atm the compiler isnt working for me

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

script needed

Post by HavoC » October 26th, 2006, 3:41 am

itsworking now but, i wanna know do you guyz create some of your own textures?

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

script needed

Post by HavoC » October 26th, 2006, 8:14 pm

do you guyz know why when i try to play my map u can go right throuhg the grass u cant walk on it???

teebag
CJ Spammer!
CJ Spammer!
Posts: 548
Joined: August 7th, 2006, 7:11 pm

Re: script needed

Post by teebag » October 26th, 2006, 8:49 pm

HavoC wrote:do you guyz know why when i try to play my map u can go right throuhg the grass u cant walk on it???
You used a blend texture, you fall trough it. Use a grasstexture that is solid (any grass with @ in its name)
That's why my brother's computer doesn't need anti-virus software; 450MHz P3 doesn't meet virus's system requirements.

Pedsdude
Site Admin
Site Admin
Posts: 15914
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » October 26th, 2006, 10:25 pm

Indeed, make sure it has '@' in the name, ones without are NOT solid.
Image
Image

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

Post by Nightmare » October 26th, 2006, 11:08 pm

seriously peds, why do you have to act like a parrot and repeat what other people say?
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

script needed

Post by HavoC » October 27th, 2006, 3:12 am

thx guyzzzz

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

script needed

Post by HavoC » October 27th, 2006, 11:35 pm

would u guyz no why my elevatoor dont go up wen i try to and door dont open wwen i t try?

User avatar
Soviet
Core Staff
Core Staff
Posts: 7762
Joined: April 23rd, 2005, 9:12 pm

Post by Soviet » October 27th, 2006, 11:41 pm

post your script and make sure you got your targetnames right

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

script needed

Post by HavoC » October 28th, 2006, 12:20 am

the elevator script is:

Code: Select all

Elevatorup() 
{ 
elevator = getent ("elevator","targetname"); 
trigger = getent ("elevatorup","targetname"); 
while(1) 
{ 
trigger waittill ("trigger"); 
elevator moveZ (126,3,0.5,0.5); 
elevator waittill ("movedone"); 
} 
} 




Elevatordown() 
{ 
elevator = getent ("elevator","targetname"); 
trigger = getent ("elevatordown","targetname"); 
while(1) 
{ 
trigger waittill ("trigger"); 
elevator moveZ (-126,3,0.5,0.5); 
elevator waittill ("movedone"); 
} 
}
then the door is

Code: Select all

main() 
{ 
thread door1(); 
} 

door1() 
{ 
door1 = getent ("door1","targetname"); 
door1_trig = getent ("door1_trig","targetname"); 

while (1) 
{ 
door1_trig waittill ("trigger"); 
door1 rotateto ((0, -90,0), 1); 
wait (2); 
door1 rotateto ((0, 0,0), 1); 
} 
} [code]
[quote][/code]


[/quote]

and there are screenshots tha my be helpful here

http://www.freewebs.com/codmapping/screenshots.htm

TY

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

Post by Nightmare » October 28th, 2006, 1:37 am

you dont seem to have elevator up and down stated in the

Code: Select all

main()
{
thread door1();
}
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 2 guests