News:

Come Chat with us live! Learn how HERE!

Main Menu

elevator

Started by professor, December 23, 2008, 03:55:50 PM

professor

how do i make an elevator, so that there is a func_button in the back, and when u press it, it goes up or down...  then have it so that the doors open when u get to the end of the path...
http://static.flickr.com/24/141310872_e39ad59705_b.jpg
omg! someone cut the arm off my tyrant!!

UniqPhoeniX

Use those entities, each targeting the one below it

func_buttons
target_delay (wait > total time elevator needs before moving again)
2xtarget_delay (to set train from wait to stop to start)
func_train
path_corner where elevator starts targeting next corner. Those that train needs to stop at, need wait 99999.

There might be an easier way, but you could make doors with func_trains with (2x number of stops) path_corners, all in closed position except one, and trigger all doors when/before train starts moving and when/after it reaches next stop, and make doors target the right path_corner to sync them with train. I guess you will need to make these with wait 99999 and 2x trigger too.
If you want the button in train, you will need to make something that looks like a button on the train and place an invisible trigger where it would be at each stop.

I assume you know how most of these entities work tho.

professor

well i understand the train, and paths, but the part i dont get is how to make it stop, and restart when the button is pressed... and  i could make it so that the doors  open when a button in/outside the elevator is pressed... just dont get how to make them move wit the elevator, and open
http://static.flickr.com/24/141310872_e39ad59705_b.jpg
omg! someone cut the arm off my tyrant!!

Kaleo

I think it was Tayio who did a brilliant diagram of a three button lift.

I just can't find it, unfortunatly.
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...

UniqPhoeniX

Quote from: professor on December 24, 2008, 02:42:31 AM
well i understand the train, and paths, but the part i dont get is how to make it stop, and restart when the button is pressed... and  i could make it so that the doors  open when a button in/outside the elevator is pressed... just dont get how to make them move wit the elevator, and open
Read my post again, I explained all of it.

Taiyo.uk

The diagram was of a bugged implementation (allowed the elevator to become stuck).

See the groundsource .map for a working multi-button elevator: http://www.haosredro.com/trem/map-groundsource/index.html