Game Development Community

Terrain Height

by Lally Singh · in Technical Issues · 02/18/2008 (3:45 pm) · 2 replies

How do I get the height of the terrain at a given spot?

E.g. I have a given X & Y coord, but I'd like to know the appropriate Z coordinate for someone standing at that spot.

Thanks in advance!

-Lally

#1
02/18/2008 (5:34 pm)
%z = getTerrainHeight("123 456");
where the numbers are the x,y coordinates

or do something like:
%z = getTerrainHeight(%x SPC %y);
#2
02/20/2008 (4:14 pm)
Wonderful, thank you!