# Height Of Unit

Grammar — Height of u
FlagsNative | Function

Returns the height of the specified unit.

# Arguments

  • unit — Unit

Returns — fixed

native fixed UnitGetHeight(unit inUnit);

Category: Unit / Properties

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:829

    // Implementation
    libNtve_gf_UnitCreateFacingPoint(1, lp_escortType, 0, gv_pLAYER_02_SHUTTLE_BLUE, UnitGetPosition(gv_dockingBayUnits[lp_dockingBay]), lp_destination);
    lv_escortHeight = UnitGetHeight(UnitLastCreated());
    if ((lp_escortType == "Carrier")) {
        UnitMagazineArm(UnitLastCreated(), AbilityCommand("CarrierHangar", 0), libHots_gf_DifficultyValueInt2(3, 3, 6));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2mapMapScript.galaxy:829

    // Implementation
    libNtve_gf_UnitCreateFacingPoint(1, lp_escortType, 0, gv_pLAYER_02_SHUTTLE_BLUE, UnitGetPosition(gv_dockingBayUnits[lp_dockingBay]), lp_destination);
    lv_escortHeight = UnitGetHeight(UnitLastCreated());
    if ((lp_escortType == "Carrier")) {
        UnitMagazineArm(UnitLastCreated(), AbilityCommand("CarrierHangar", 0), libHots_gf_DifficultyValueInt2(3, 3, 6));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5971

        Wait(0.0625, c_timeGame);
    }
    lv_zTotal = (45.0 + UnitGetHeight(lv_kerriganStrikeAmon));
    libNtve_gf_SendActorMessageToUnit(lv_kerriganStrikeAmon, "Signal StrikeAmonArcStart");
    UnitCreateEffectUnit(lv_kerriganStrikeAmon, "StrikeAmonArcStart", lv_kerriganStrikeAmon);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:4786

    }

    UnitSetHeight(lv_nova, UnitGetHeight(lv_target), 0.0);
    return true;
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:13546

    }

    if ((UnitGetHeight(EventUnit()) >= 1)) {
        lv_locustUnitType = "LocustFlying";
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15658

    }

    if ((UnitGetHeight(EventUnit()) >= 1)) {
        lv_locustUnitType = "LocustFlying";
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1019

            lv_departPoint = UnitGetPosition(lp_damagedUnit);
            PointSetFacing(lv_departPoint, AngleBetweenPoints(lv_departPoint, lv_teleportPoint));
            PointSetHeight(lv_departPoint, UnitGetHeight(lp_damagedUnit));
            libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkOut", lv_departPoint);
            ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.250000");

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1030

            UnitBehaviorAdd(lp_damagedUnit, "MutatorSideStep", lp_damagedUnit, 1);
            PointSetFacing(lv_teleportPoint, AngleBetweenPoints(lv_teleportPoint, lv_departPoint));
            PointSetHeight(lv_teleportPoint, UnitGetHeight(lp_damagedUnit));
            libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkIn", lv_teleportPoint);
            ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.250000");