GetUnitX
- Parameters
whichUnit unit- comment
Returns X map coordinate of whichUnit (alive or dead). Returns 0.0 if unit was removed or is null.
- 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.
- note
Since unit extends from
widget, you can use widget-related functions too. See:GetUnitY,BlzGetLocalUnitZ,BlzGetUnitZ,GetWidgetX,GetWidgetY.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
real- Source code
constant native GetUnitX takes unit whichUnit returns real