Jump to content

Home

Elevators Again


Cosman

Recommended Posts

Ok. :rolleyes: I know you have discus it a lot but I want to make an automatic elevator.

I have a 3 floor building and I need an elevator that will automatically stop for 8 sec in each floor and open the floors door (or force field) how I do this thing. :confused:

Well I have seen it in Forbidden Twilight (a map for jk2). Another thing the tutorial link for elevator in page http://www.lucasforums.com/showthread.php?s=&threadid=110416

from wedge2211 is broken I think…. (Or am I wrong?)

Link to comment
Share on other sites

The only thing I can suggest is to use a script. Make your lift, and then use a script to move it on the z-axis the required number of game units, use a wait command in the script with the value 8000.

 

Put that in a loop for 3 iterations, create another loop that has the elevator going down (a negative value on the z-axis).

 

Loop that 3 times and put those 2 loops in a big infinte loop.

 

Don't ask me for the code as all I do to create scripts is press the buttons that look correct, but the above pseudo-pseudo-code should do the trick!

 

I can do the theory but not the practice. Anyone out there want to explain this better?

 

Some pseudocode:

 

loop forever

begin

 

loop 3 times

begin

move platform z=512

wait (8000)

end

 

loop 3 times

begin

move platform z=-512

wait (8000)

end

 

end

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...