I just do a linepick straight down and alter the players position based on the PickedY#() and the players YPosition.
This way you can smooth out stairs so the camera doesn't bump up and down them.
This way you can smooth out stairs so the camera doesn't bump up and down them.
LinePick EntityX#(p\head,True),EntityY#(p\head,True),EntityZ#(p\head,True),0,-50,0 currentheight#=EntityY#(p\head,True)-PickedY#() currentpicked=PickedEntity() If currentpicked<>0 If currentheight#<p\height# MoveEntity p\head,0,(p\height#-currentheight#)/10,0 EndIf If currentheight#>p\height# MoveEntity p\head,0,-(currentheight#-p\height#)/5,0 EndIf EndIf