GetLocationZ

Parameters
whichLocation location
comment

Returns the current terrain height at a location.

note

Reasons for returning different values might be terrain-deformations caused by spells/abilities and different graphic settings. Other reasons could be the rendering state of destructables and visibility differences.

note

Returns 0 if whichLocation is null.

async
This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
patch

1.18a

Source
common.j
return type
real
Source code
native GetLocationZ             takes location whichLocation returns real