hovering a ship

Blitz3D Forums/Blitz3D Beginners Area/hovering a ship

Oh boy.... My day doesn't get any better with this does it?

Okay this is what I added.

This was placed after the track is loaded and setup:
EntityPickMode track,2


This was added into the mainloop:
shipx=EntityX(ship)
shipy=EntityY(ship)
shipz=EntityZ(ship)

LinePick shipx,shipy,shipz,0,-50,0

	num=PickedEntity()
	tracky=PickedY()
	dist=shipy-tracky


I use this to monitor the values as I move the ship:
                Text 320,540,EntityY(ship)
	Text 450,540,PickedY()
	Text 600,540,dist


When I move the ship around I will get any thing from 1 to -100 (Even though the track is ALWAYS below the ship)!

I am starting to wonder if this was such a good idea now... :( :( :( I assume I have done something obviously wrong here (well I hope I have. If anyone can tell me what I really would appreicate it cause I am about as lost as a blind mouse in a giant maze ;(

Max