Locking an elevator in place

Discussion in 'Mapping Questions & Discussion' started by sooshey, Jul 19, 2016.

  1. sooshey

    aa sooshey :3c

    Messages:
    522
    Positive Ratings:
    418
    I made a simple elevator that rises when you stand on it and falls when you step off (just like doomsday) but I'd like it to lock in place when it reaches the top. I made the actual elevator a func_movelinear. How would I lock the elevator in place OnFullyOpen?
     
  2. Blinx

    Blinx L69: Deviant Member

    Messages:
    69
    Positive Ratings:
    39
    I strongly discourage the use of func_movelinear for brushes that players can interact with, it's very fussy and doesn't handle player collisions well at all, I'd use a func_tracktrain instead.

    As for your problem, if you choose to stay with func_movelinear, could you not just set the speed to 0 on fully open?

    If you used a func_tracktrain instead though, on the path_track that would essentially be the end position, you'd just need an output that would look like: OnPass -> Elevator entity -> Stop.
     
    • Thanks Thanks x 1
  3. sooshey

    aa sooshey :3c

    Messages:
    522
    Positive Ratings:
    418
    Thanks for the suggestion. I'm not that great with entities or logic yet so this was helpful.