BlzGetLocalUnitZ

Parameters
whichUnitunit
comment

Alias for BlzGetUnitZ.

note

It is likely the intent was to provide different values between the two, but currently this calls BlzGetUnitZ.

note

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

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

Source
common.j (suggest an edit or discuss on Github)
return type
real
Source code
native BlzGetLocalUnitZ                            takes unit whichUnit returns real