For those of you who didn't want to bother with figuring out code to walk on an .X model, here it is.
autocam off
sync on
sync rate 0
`load our land object
load object "land.x",1
`make a player
make object cube 10,2
position object 10,100,0,100
do
set cursor 0,0
print "height:",height#
`player controls
if leftkey()=1 then yrotate object 10,wrapvalue(object angle y(10)-0.25)
if rightkey()=1 then yrotate object 10,wrapvalue(object angle y(10)+0.25)
if upkey()=1 then move object 10,0.1
`get player positions
px#=object position x(10)
pz#=object position z(10)
`calculate the height at player X & Z
height#=100001-intersect object(1,px#,100000,pz#,px#,-100000,pz#)
`put player at the new height
position object 10,px#,height#,pz#
`simple camera follow
set camera to follow px#,height#,pz#,object angle y(10),10,height#+2,2,0
sync
loop
I've also made the zip file that has the compiled EXE, model and source.
Get it here: 1.4MB
http://dakoren.home.attbi.com/XHeight.zip
-Kensupen