# Height Of Region

Grammar — Height of region
FlagsFunction

Returns the height of the specified region.

# Arguments

  • region — Region

Returns — fixed

fixed libNtve_gf_HeightOfRegion(region lp_region);

Category: Region / Modification

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6355

        else {
        }
        lv_lowerSideY = (PointGetY(RegionGetBoundsMin(lv_outerBounds)) + (libNtve_gf_HeightOfRegion(lv_outerBounds) * 0.333));
        if ((lv_lowerSide == false) && (PointGetY(lv_posCurrent) <= lv_lowerSideY)) {
            lv_lowerSide = true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:6355

        else {
        }
        lv_lowerSideY = (PointGetY(RegionGetBoundsMin(lv_outerBounds)) + (libNtve_gf_HeightOfRegion(lv_outerBounds) * 0.333));
        if ((lv_lowerSide == false) && (PointGetY(lv_posCurrent) <= lv_lowerSideY)) {
            lv_lowerSide = true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:732

    // Implementation
    lv_creepArea = gf_CreepAreaOnMap(1.0);
    lv_mapArea = (libNtve_gf_WidthOfRegion(RegionPlayableMap()) * libNtve_gf_HeightOfRegion(RegionPlayableMap()));
    return ((lv_creepArea / lv_mapArea) * 100);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:732

    // Implementation
    lv_creepArea = gf_CreepAreaOnMap(1.0);
    lv_mapArea = (libNtve_gf_WidthOfRegion(RegionPlayableMap()) * libNtve_gf_HeightOfRegion(RegionPlayableMap()));
    return ((lv_creepArea / lv_mapArea) * 100);
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:636


    lv_creepArea = gf_CreepAreaOnMap(1.0);
    lv_mapArea = (libNtve_gf_WidthOfRegion(RegionPlayableMap()) * libNtve_gf_HeightOfRegion(RegionPlayableMap()));
    return ((lv_creepArea / lv_mapArea) * 100);
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2mapMapScript.galaxy:636


    lv_creepArea = gf_CreepAreaOnMap(1.0);
    lv_mapArea = (libNtve_gf_WidthOfRegion(RegionPlayableMap()) * libNtve_gf_HeightOfRegion(RegionPlayableMap()));
    return ((lv_creepArea / lv_mapArea) * 100);
}

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:412

    lv_boundsWest = (PointGetX(RegionGetCenter(RegionPlayableMap())) - (libNtve_gf_WidthOfRegion(RegionPlayableMap()) / 2.0));
    lv_boundsEast = (PointGetX(RegionGetCenter(RegionPlayableMap())) + (libNtve_gf_WidthOfRegion(RegionPlayableMap()) / 2.0));
    lv_boundsNorth = (PointGetY(RegionGetCenter(RegionPlayableMap())) + (libNtve_gf_HeightOfRegion(RegionPlayableMap()) / 2.0));
    lv_boundsSouth = (PointGetY(RegionGetCenter(RegionPlayableMap())) - (libNtve_gf_HeightOfRegion(RegionPlayableMap()) / 2.0));
    if ((PointGetX(lp_point) < lv_boundsWest)) {

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:413

    lv_boundsEast = (PointGetX(RegionGetCenter(RegionPlayableMap())) + (libNtve_gf_WidthOfRegion(RegionPlayableMap()) / 2.0));
    lv_boundsNorth = (PointGetY(RegionGetCenter(RegionPlayableMap())) + (libNtve_gf_HeightOfRegion(RegionPlayableMap()) / 2.0));
    lv_boundsSouth = (PointGetY(RegionGetCenter(RegionPlayableMap())) - (libNtve_gf_HeightOfRegion(RegionPlayableMap()) / 2.0));
    if ((PointGetX(lp_point) < lv_boundsWest)) {
        lv_returnX = lv_boundsWest;

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

        lv_placementX = PointGetX(PointWithOffsetPolar(EventPlayerEffectUsedPoint(c_effectLocationCasterUnit), 13.0, lv_angle));
        lv_placementY = PointGetY(PointWithOffsetPolar(EventPlayerEffectUsedPoint(c_effectLocationCasterUnit), 13.0, lv_angle));
        if (((lv_placementX > 1) && (lv_placementY > 1) && (lv_placementX < libNtve_gf_WidthOfRegion(lv_mapSize)) && (lv_placementY < libNtve_gf_HeightOfRegion(lv_mapSize)))) {
            if ((CreepIsPresent(Point(lv_placementX, lv_placementY)) == true)) {
                lv_creepTumorGroup = UnitGroupEmpty();

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

    autoA43082AB_val = RandomInt(1, 4);
    if (autoA43082AB_val == 1) {
        lv_launchLocation = Point(RandomFixed(0.0, libNtve_gf_WidthOfRegion(RegionEntireMap())), libNtve_gf_HeightOfRegion(RegionEntireMap()));
    }
    else if (autoA43082AB_val == 2) {

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

    }
    else if (autoA43082AB_val == 3) {
        lv_launchLocation = Point(0.0, RandomFixed(0.0, libNtve_gf_HeightOfRegion(RegionEntireMap())));
    }
    else if (autoA43082AB_val == 4) {

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

    }
    else if (autoA43082AB_val == 4) {
        lv_launchLocation = Point(libNtve_gf_WidthOfRegion(RegionEntireMap()), RandomFixed(0.0, libNtve_gf_HeightOfRegion(RegionEntireMap())));
    }
    else {

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

    CatalogFieldValueSet(c_gameCatalogEffect, "MutatorTornadoAOESearchDamage", "Amount", 3, IntToString(libCOMI_gf_MinimumDifficultyValueCoopInteger(5, 10, 15, 25, 25, 25)));
    lv_tornadoCount += MaxI(FixedToInt((libNtve_gf_WidthOfRegion(RegionPlayableMap()) / 19.0)), 1);
    lv_tornadoCount += MaxI(FixedToInt((libNtve_gf_HeightOfRegion(RegionPlayableMap()) / 19.0)), 1);
    if ((libCOOC_gf_CC_CurrentMap() == "AC_VeridiaCourier")) {
        lv_harvestableSpawnBufferDistance = 5;

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

        lv_moveDirection = 0.0;
    }
    lv_mapSizeModifier = (500.0 - libNtve_gf_HeightOfRegion(RegionPlayableMap()));
    lv_waitTime = ((libCOMI_gf_MinimumDifficultyValueCoopReal(4.0, 3.0, 2.0, 1.5, 0.1, 0.1) * lv_mapSizeModifier) / 100.0);
    lv_spawnRegion = RegionPlayableMap();

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

        for ( ; ( (auto3E5E16FE_ai >= 0 && lv_safetyInt <= auto3E5E16FE_ae) || (auto3E5E16FE_ai < 0 && lv_safetyInt >= auto3E5E16FE_ae) ) ; lv_safetyInt += auto3E5E16FE_ai ) {
            if ((lv_moveDirection == 0.0)) {
                lv_spawnLocation = Point(0.0, RandomFixed(0.0, (libNtve_gf_HeightOfRegion(RegionPlayableMap()) + lv_drift)));
                lv_destinationLocation = Point(libNtve_gf_WidthOfRegion(RegionEntireMap()), (PointGetY(lv_spawnLocation) - lv_drift));
            }

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

            }
            else if (true) {
                lv_spawnSpan = (libNtve_gf_HeightOfRegion(RegionPlayableMap()) + libNtve_gf_WidthOfRegion(RegionPlayableMap()));
                lv_spawnDistance = RandomFixed(0.0, lv_spawnSpan);
                lv_rightTriangleAngle = libCOMU_gf_CT_MathNumberWrap(lv_moveDirection, 0.0, 90.0);

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

                lv_spawnDistance = RandomFixed(0.0, lv_spawnSpan);
                lv_rightTriangleAngle = libCOMU_gf_CT_MathNumberWrap(lv_moveDirection, 0.0, 90.0);
                if ((lv_spawnDistance > libNtve_gf_HeightOfRegion(RegionPlayableMap()))) {
                    lv_spawnLocation = Point((lv_spawnDistance - libNtve_gf_HeightOfRegion(RegionPlayableMap())), libNtve_gf_HeightOfRegion(RegionPlayableMap()));
                    lv_destinationLocation = PointWithOffsetPolar(lv_spawnLocation, ((libNtve_gf_WidthOfRegion(RegionEntireMap()) - PointGetX(lv_spawnLocation)) / Cos(lv_rightTriangleAngle)), lv_moveDirection);

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

                lv_rightTriangleAngle = libCOMU_gf_CT_MathNumberWrap(lv_moveDirection, 0.0, 90.0);
                if ((lv_spawnDistance > libNtve_gf_HeightOfRegion(RegionPlayableMap()))) {
                    lv_spawnLocation = Point((lv_spawnDistance - libNtve_gf_HeightOfRegion(RegionPlayableMap())), libNtve_gf_HeightOfRegion(RegionPlayableMap()));
                    lv_destinationLocation = PointWithOffsetPolar(lv_spawnLocation, ((libNtve_gf_WidthOfRegion(RegionEntireMap()) - PointGetX(lv_spawnLocation)) / Cos(lv_rightTriangleAngle)), lv_moveDirection);
                }

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

                lv_rightTriangleAngle = libCOMU_gf_CT_MathNumberWrap(lv_moveDirection, 0.0, 90.0);
                if ((lv_spawnDistance > libNtve_gf_HeightOfRegion(RegionPlayableMap()))) {
                    lv_spawnLocation = Point((lv_spawnDistance - libNtve_gf_HeightOfRegion(RegionPlayableMap())), libNtve_gf_HeightOfRegion(RegionPlayableMap()));
                    lv_destinationLocation = PointWithOffsetPolar(lv_spawnLocation, ((libNtve_gf_WidthOfRegion(RegionEntireMap()) - PointGetX(lv_spawnLocation)) / Cos(lv_rightTriangleAngle)), lv_moveDirection);
                }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:5986

    }

    lv_mapScale = (lv_baseMapSize / MaxF(libNtve_gf_WidthOfRegion(RegionPlayableMap()), libNtve_gf_HeightOfRegion(RegionPlayableMap())));
    lv_mapScale = (lv_mapScale * lv_baseScale);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(1), "PingViewArea", CameraGetTarget(2), libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(2, false)), 0.0, 270.0);