Page 2 of 3

Posted: October 23rd, 2006, 12:51 am
by Nightmare
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");
}
}

Posted: October 23rd, 2006, 12:59 am
by HavoC
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

script needed?

Posted: October 24th, 2006, 2:15 am
by HavoC
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

Posted: October 24th, 2006, 2:17 am
by Nightmare
seems fine, compile it and give it a try

script needed

Posted: October 24th, 2006, 11:58 am
by HavoC
ok thx,,but atm the compiler isnt working for me

script needed

Posted: October 26th, 2006, 3:41 am
by HavoC
itsworking now but, i wanna know do you guyz create some of your own textures?

script needed

Posted: October 26th, 2006, 8:14 pm
by HavoC
do you guyz know why when i try to play my map u can go right throuhg the grass u cant walk on it???

Re: script needed

Posted: October 26th, 2006, 8:49 pm
by teebag
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)

Posted: October 26th, 2006, 10:25 pm
by Pedsdude
Indeed, make sure it has '@' in the name, ones without are NOT solid.

Posted: October 26th, 2006, 11:08 pm
by Nightmare
seriously peds, why do you have to act like a parrot and repeat what other people say?

script needed

Posted: October 27th, 2006, 3:12 am
by HavoC
thx guyzzzz

script needed

Posted: October 27th, 2006, 11:35 pm
by HavoC
would u guyz no why my elevatoor dont go up wen i try to and door dont open wwen i t try?

Posted: October 27th, 2006, 11:41 pm
by Soviet
post your script and make sure you got your targetnames right

script needed

Posted: October 28th, 2006, 12:20 am
by HavoC
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

Posted: October 28th, 2006, 1:37 am
by Nightmare
you dont seem to have elevator up and down stated in the

Code: Select all

main()
{
thread door1();
}