Tremulous Forum

Media => Mapping Center => Topic started by: professor on December 23, 2008, 03:55:50 pm

Title: elevator
Post 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...
Title: Re: elevator
Post by: UniqPhoeniX on December 23, 2008, 06:20:44 pm
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.
Title: Re: elevator
Post by: 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
Title: Re: elevator
Post by: Kaleo on December 24, 2008, 09:06:05 am
I think it was Tayio who did a brilliant diagram of a three button lift.

I just can't find it, unfortunatly.
Title: Re: elevator
Post by: UniqPhoeniX on December 24, 2008, 04:09:58 pm
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.
Title: Re: elevator
Post by: Taiyo.uk on December 24, 2008, 07:05:51 pm
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