Use a trace... First take my.z and minus 2000 from it or so and place that in another vector. Next do a trace to the vector you placed that position in. After that, in an if condition to check if the trace was far from its starting point, if so move the my.z downward until the trace doesnt return such a high value.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/