Locking an elevator in place

sooshey

:3c
aa
Jan 7, 2015
514
410
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?
 

Blinx

L69: Deviant Member
Mar 14, 2016
69
51
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.
 

sooshey

:3c
aa
Jan 7, 2015
514
410
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 for the suggestion. I'm not that great with entities or logic yet so this was helpful.