Try this,
entityPickMode LevelMesh,2,true (And if you used loadAnimMesh to load your level, you'll have to set all it's children to pick mode too, unless it's a skinned .b3d, in which case picks won't work at all if it's animating too much.(Goes out of sync)
Then,
Also, be sure to use the global flag if the player is a child of anything, or you might be moving it in local space.
entityPickMode LevelMesh,2,true (And if you used loadAnimMesh to load your level, you'll have to set all it's children to pick mode too, unless it's a skinned .b3d, in which case picks won't work at all if it's animating too much.(Goes out of sync)
Then,
hit=linePick(entityX(myPlayer),entityY(myPlayer)+0.1,entityZ(myPlayer),0,-0.2,0) if hit yInertia=0 positionEntity myPlayer,entityX(myPlayer),pickedY(),entityZ(myPlayer)) else if yInertia>-0.2 ;Terminal Velocity, change to suit. yInertia=yInertia-0.02 endif
Also, be sure to use the global flag if the player is a child of anything, or you might be moving it in local space.