Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetSurfaceZ

Returns Z for Position X and Y of world WorldNum.

NB: This Z is actual for Surface only, means map tiles, it doest include Z changes from static!

NB: This Z is NOT equal to Z, returned in Z field of record by GetMapCell. GetMapCell returns Z value for exact map tile, but GetSurfaceZ calculate it with taking in consideration 4 nearby tiles.

Pascal Syntax:

function GetSurfaceZ(X : Word; Y : Word; WorldNum : Byte) : ShortInt;

Pascal Example:

Python Syntax:

def GetSurfaceZ(X, Y, WorldNum): --> signed byte