• Async

    Return unit's (altitude) Z map coordinate (Cartesian System). Unit may be alive or dead.

    Returns 0.0 if unit was removed or is null.

    Retrieving Z is desync prone, this version might cause desyncs, but (unconfirmed) should be faster than BlzGetUnitZ, hence why both exist. In case that you are doing a single player map (campaign), you might decide to use this one instead of BlzGetUnitZ.

    Parameters

    Returns number

    Note

    Terrain height is not synced between clients in multiplayer.

    Note

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

    Patch

    1.29

Generated using TypeDoc