Tremulous Forum
Media => Mapping Center => Topic started by: professor on December 23, 2008, 03:55:50 pm
-
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...
-
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.
-
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
-
I think it was Tayio who did a brilliant diagram of a three button lift.
I just can't find it, unfortunatly.
-
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.
-
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