GetUnitY

Parameters
whichUnit unit
bug

If the unit is loaded into a zeppelin this will not return the position of the zeppelin but the last position of the unit before it was loaded into the zeppelin.

comment

Returns Y map coordinate of whichUnit (alive or dead). Returns 0.0 if unit was removed or is null.

note

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

return type
real
Source code
constant native GetUnitY            takes unit whichUnit returns real
Source
common.j
wc3modding.com
GetUnitY