Is he using an object, a matrix, or advanced terrain?
I don't know how advanced terrain works, so I only have two solutions:
Object (mesh): You can do a few different things to collide with a terrain (or any kind of world) if it is a mesh object. You can use raycasting (
intersect object) and work out your own subroutine/function, or you could use one of the many collision plugins available. Sparky's DLL, Newton, Nuclear Glory (costs money), etc.
Matrix: Simply use the
y# = Get Ground Height( x#, z# ) to retrieve the height of the ground where the player is at x# and at z#. The value will be returned to the variable y#, so you can align your player to that.