Author Topic: elevator  (Read 3712 times)

professor

  • Posts: 232
  • Turrets: +1/-33
elevator
« 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...
http://static.flickr.com/24/141310872_e39ad59705_b.jpg
omg! someone cut the arm off my tyrant!!

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: elevator
« Reply #1 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.

professor

  • Posts: 232
  • Turrets: +1/-33
Re: elevator
« Reply #2 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
http://static.flickr.com/24/141310872_e39ad59705_b.jpg
omg! someone cut the arm off my tyrant!!

Kaleo

  • Posts: 2098
  • Turrets: +176/-220
    • KaleoDesign
Re: elevator
« Reply #3 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.
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

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: elevator
« Reply #4 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.

Taiyo.uk

  • Posts: 2309
  • Turrets: +222/-191
    • Haos Redro
Re: elevator
« Reply #5 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