BlzGetUnitZ

Parameters
whichUnit unit
comment
note

Returns the same result as BlzGetLocalUnitZ.

note

Since unit extends from widget, you can use widget-related functions too. See: GetUnitX, GetUnitY, GetWidgetX, GetWidgetY.

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.30.0.9655

Source
common.j
return type
real
Source code
native BlzGetUnitZ                                 takes unit whichUnit returns real