# Top-Right Of Region Bounds

Grammar — Top-right of r bounds
FlagsNative | Function

Returns the maximum bounds of a region. For a rectangle region, this is the top-right corner of the rectangle. In the general case, this is a point comprising the right-most X coordinate and the top-most Y coordinate of the region.

# Arguments

  • region — Region

Returns — point

native point RegionGetBoundsMax(region r);

Category: Region / Modification

# Examples

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

    // Implementation
    lv_boundary = gf_GetCameraBoundary();
    lv_maxBound = RegionGetBoundsMax(lv_boundary);
    lv_maxBound = PointWithOffset(lv_maxBound, 4.0, 2.0);
    lv_minBound = RegionGetBoundsMin(lv_boundary);

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

    // Implementation
    lv_bounds = gf_GetCameraBoundary();
    return (lp_y + PointGetY(RegionGetBoundsMax(lv_bounds)));
}

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

    lv_bounds = gf_GetCameraBoundary();
    if ((RegionContainsPoint(lv_bounds, lv_posNext) == false)) {
        lv_maxBound = RegionGetBoundsMax(lv_bounds);
        lv_minBound = RegionGetBoundsMin(lv_bounds);
        lv_x = PointGetX(lv_posNext);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:2798

        }
        TriggerEnable(gt_RocksDestroyed, true);
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(6, 8, 10, 12), "InfestedCivilianBurrowed", 0, gv_pLAYER_03_INFESTED_REFUGEES, RegionGetBoundsMax(RegionFromId(14)));
        UnitGroupIssueOrder(UnitLastCreatedGroup(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
        Wait(3.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:2809

            UnitIssueOrder(autoD4FFD9DC_var, OrderTargetingUnit(AbilityCommand("attack", 0), UnitFromId(17)), c_orderQueueReplace);
        }
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(10, 12, 14, 16), "InfestedTerranCampaignBurrowed", 0, gv_pLAYER_03_INFESTED_REFUGEES, RegionGetBoundsMax(RegionFromId(14)));
        UnitGroupIssueOrder(UnitLastCreatedGroup(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
        Wait(3.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:2820

            UnitIssueOrder(autoCC0C2416_var, OrderTargetingUnit(AbilityCommand("attack", 0), UnitFromId(17)), c_orderQueueReplace);
        }
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(0, 0, 1, 2), "InfestedAbominationBurrowed", 0, gv_pLAYER_03_INFESTED_REFUGEES, RegionGetBoundsMax(RegionFromId(14)));
        UnitGroupIssueOrder(UnitLastCreatedGroup(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
        Wait(3.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:35


    // Implementation
    lv_radius = (AbsF((PointGetX(RegionGetBoundsMax(lp_circle)) - PointGetX(RegionGetBoundsMin(lp_circle)))) / 2.0);
    return PointWithOffsetPolar(RegionGetCenter(lp_circle), RandomFixed(0.0, lv_radius), libNtve_gf_RandomAngle());
}

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

    // Implementation
    lv_boundary = gf_GetCameraBoundary();
    lv_maxBound = RegionGetBoundsMax(lv_boundary);
    lv_maxBound = PointWithOffset(lv_maxBound, 4.0, 2.0);
    lv_minBound = RegionGetBoundsMin(lv_boundary);

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

    // Implementation
    lv_bounds = gf_GetCameraBoundary();
    return (lp_y + PointGetY(RegionGetBoundsMax(lv_bounds)));
}

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

    lv_bounds = gf_GetCameraBoundary();
    if ((RegionContainsPoint(lv_bounds, lv_posNext) == false)) {
        lv_maxBound = RegionGetBoundsMax(lv_bounds);
        lv_minBound = RegionGetBoundsMin(lv_bounds);
        lv_x = PointGetX(lv_posNext);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:2798

        }
        TriggerEnable(gt_RocksDestroyed, true);
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(6, 8, 10, 12), "InfestedCivilianBurrowed", 0, gv_pLAYER_03_INFESTED_REFUGEES, RegionGetBoundsMax(RegionFromId(14)));
        UnitGroupIssueOrder(UnitLastCreatedGroup(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
        Wait(3.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:2809

            UnitIssueOrder(autoD4FFD9DC_var, OrderTargetingUnit(AbilityCommand("attack", 0), UnitFromId(17)), c_orderQueueReplace);
        }
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(10, 12, 14, 16), "InfestedTerranCampaignBurrowed", 0, gv_pLAYER_03_INFESTED_REFUGEES, RegionGetBoundsMax(RegionFromId(14)));
        UnitGroupIssueOrder(UnitLastCreatedGroup(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
        Wait(3.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:2820

            UnitIssueOrder(autoCC0C2416_var, OrderTargetingUnit(AbilityCommand("attack", 0), UnitFromId(17)), c_orderQueueReplace);
        }
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(0, 0, 1, 2), "InfestedAbominationBurrowed", 0, gv_pLAYER_03_INFESTED_REFUGEES, RegionGetBoundsMax(RegionFromId(14)));
        UnitGroupIssueOrder(UnitLastCreatedGroup(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
        Wait(3.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2mapMapScript.galaxy:35


    // Implementation
    lv_radius = (AbsF((PointGetX(RegionGetBoundsMax(lp_circle)) - PointGetX(RegionGetBoundsMin(lp_circle)))) / 2.0);
    return PointWithOffsetPolar(RegionGetCenter(lp_circle), RandomFixed(0.0, lv_radius), libNtve_gf_RandomAngle());
}

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

    lv_x = PointGetX(RegionGetBoundsMin(RegionPlayableMap()));
    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

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

    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

    // Implementation

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

    lv_x = PointGetX(RegionGetBoundsMin(RegionPlayableMap()));
    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

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

    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

    // Implementation

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

    lv_x = PointGetX(RegionGetBoundsMin(RegionPlayableMap()));
    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

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

    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

    // Implementation

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:497

    }
    UnitGroupLoopEnd();
    IntLoopBegin(FixedToInt((PointGetY(RegionGetBoundsMin(RegionFromId(1))) + 1.0)), FixedToInt(PointGetY(RegionGetBoundsMax(RegionFromId(1)))));
    for ( ; !IntLoopDone() ; IntLoopStep() ) {
        libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "ShapeCube", Point((PointGetX(RegionGetCenter(RegionFromId(1))) + (libNtve_gf_WidthOfRegion(RegionFromId(1)) / 2.0)), IntLoopCurrent()), ColorWithAlpha(100.00, 100.00, 100.00, 0.00), 0.0, 270.0);

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

    lv_x = PointGetX(RegionGetBoundsMin(RegionPlayableMap()));
    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

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

    lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
    lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
    lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));

    // Implementation

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:497

    }
    UnitGroupLoopEnd();
    IntLoopBegin(FixedToInt((PointGetY(RegionGetBoundsMin(RegionFromId(1))) + 1.0)), FixedToInt(PointGetY(RegionGetBoundsMax(RegionFromId(1)))));
    for ( ; !IntLoopDone() ; IntLoopStep() ) {
        libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "ShapeCube", Point((PointGetX(RegionGetCenter(RegionFromId(1))) + (libNtve_gf_WidthOfRegion(RegionFromId(1)) / 2.0)), IntLoopCurrent()), ColorWithAlpha(100.00, 100.00, 100.00, 0.00), 0.0, 270.0);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4171

    // Automatic Variable Declarations
    // Implementation
    return AbsF((PointGetX(RegionGetBoundsMax(lp_region)) - PointGetX(RegionGetBoundsMin(lp_region))));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4177

    // Automatic Variable Declarations
    // Implementation
    return AbsF((PointGetY(RegionGetBoundsMax(lp_region)) - PointGetY(RegionGetBoundsMin(lp_region))));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3470

    // Automatic Variable Declarations
    // Implementation
    return AbsF((PointGetX(RegionGetBoundsMax(lp_region)) - PointGetX(RegionGetBoundsMin(lp_region))));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3476

    // Automatic Variable Declarations
    // Implementation
    return AbsF((PointGetY(RegionGetBoundsMax(lp_region)) - PointGetY(RegionGetBoundsMin(lp_region))));
}

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:616

    // Implementation
    lv_x1 = PointGetX(RegionGetBoundsMin(lp_area));
    lv_x2 = PointGetX(RegionGetBoundsMax(lp_area));
    lv_y1 = PointGetY(RegionGetBoundsMin(lp_area));
    lv_y2 = PointGetY(RegionGetBoundsMax(lp_area));

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:618

    lv_x2 = PointGetX(RegionGetBoundsMax(lp_area));
    lv_y1 = PointGetY(RegionGetBoundsMin(lp_area));
    lv_y2 = PointGetY(RegionGetBoundsMax(lp_area));
    lv_result = RegionRect((lv_x1 + lp_leftOffset), (lv_y1 + lp_bottomOffset), (lv_x2 + lp_rightOffset), (lv_y2 + lp_topOffset));
    return lv_result;

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:616

    // Implementation
    lv_x1 = PointGetX(RegionGetBoundsMin(lp_area));
    lv_x2 = PointGetX(RegionGetBoundsMax(lp_area));
    lv_y1 = PointGetY(RegionGetBoundsMin(lp_area));
    lv_y2 = PointGetY(RegionGetBoundsMax(lp_area));

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:618

    lv_x2 = PointGetX(RegionGetBoundsMax(lp_area));
    lv_y1 = PointGetY(RegionGetBoundsMin(lp_area));
    lv_y2 = PointGetY(RegionGetBoundsMax(lp_area));
    lv_result = RegionRect((lv_x1 + lp_leftOffset), (lv_y1 + lp_bottomOffset), (lv_x2 + lp_rightOffset), (lv_y2 + lp_topOffset));
    return lv_result;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:260

    // Implementation
    if ((PointGetX(lv_casterPoint) <= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) <= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_targetPoint));
        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_targetAngle = AngleBetweenPoints(lv_casterPoint, lv_targetPoint);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:261

    if ((PointGetX(lv_casterPoint) <= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) <= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_targetPoint));
        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_targetAngle = AngleBetweenPoints(lv_casterPoint, lv_targetPoint);
        lv_cosineofTargetAngle = Cos(lv_targetAngle);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:265

        lv_cosineofTargetAngle = Cos(lv_targetAngle);
        if ((lv_cosineofTargetAngle > -0.001) && (lv_cosineofTargetAngle < 0.001)) {
            lv_abilityTargetPoint = Point(PointGetX(lv_targetPoint), PointGetY(RegionGetBoundsMax(RegionPlayableMap())));
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:272

            lv_cosineofTargetAngle = Cos(lv_targetAngle);
            if ((lv_cosineofTargetAngle > -0.001) && (lv_cosineofTargetAngle < 0.001)) {
                lv_abilityTargetPoint = Point(PointGetX(RegionGetBoundsMax(RegionPlayableMap())), PointGetY(lv_targetPoint));
            }
            else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:287

    else if ((PointGetX(lv_casterPoint) >= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) <= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = PointGetX(lv_targetPoint);
        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_targetAngle = (AngleBetweenPoints(lv_casterPoint, lv_targetPoint) - 90.0);
        lv_cosineofTargetAngle = Cos(lv_targetAngle);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:298

            lv_cosineofTargetAngle = Cos(lv_targetAngle);
            if ((lv_cosineofTargetAngle > -0.001) && (lv_cosineofTargetAngle < 0.001)) {
                lv_abilityTargetPoint = Point(PointGetX(lv_targetPoint), PointGetY(RegionGetBoundsMax(RegionPlayableMap())));
            }
            else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:338

    }
    else if ((PointGetX(lv_casterPoint) <= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) >= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_targetPoint));
        lv_targetYToEdgeOfMap = PointGetY(lv_targetPoint);
        lv_targetAngle = (AngleBetweenPoints(lv_casterPoint, lv_targetPoint) - 270.0);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:343

        lv_cosineofTargetAngle = Cos(lv_targetAngle);
        if ((lv_cosineofTargetAngle > -0.001) && (lv_cosineofTargetAngle < 0.001)) {
            lv_abilityTargetPoint = Point(PointGetX(RegionGetBoundsMax(RegionPlayableMap())), PointGetY(lv_targetPoint));
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1148

    lv_itIndex = 1;
    for ( ; ( (autoF3AAFE09_ai >= 0 && lv_itIndex <= autoF3AAFE09_ae) || (autoF3AAFE09_ai < 0 && lv_itIndex >= autoF3AAFE09_ae) ) ; lv_itIndex += autoF3AAFE09_ai ) {
        if ((PointGetX(RegionGetBoundsMax(lp_bound)) == PointGetX(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMax(lp_bound)) == PointGetY(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetBoundsMin(lp_bound)) == PointGetX(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMin(lp_bound)) == PointGetY(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetCenter(lp_bound)) == PointGetX(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetCenter(lp_bound)) == PointGetY(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex])))) {
            return lv_itIndex;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1148

    lv_itIndex = 1;
    for ( ; ( (autoF3AAFE09_ai >= 0 && lv_itIndex <= autoF3AAFE09_ae) || (autoF3AAFE09_ai < 0 && lv_itIndex >= autoF3AAFE09_ae) ) ; lv_itIndex += autoF3AAFE09_ai ) {
        if ((PointGetX(RegionGetBoundsMax(lp_bound)) == PointGetX(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMax(lp_bound)) == PointGetY(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetBoundsMin(lp_bound)) == PointGetX(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMin(lp_bound)) == PointGetY(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetCenter(lp_bound)) == PointGetX(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetCenter(lp_bound)) == PointGetY(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex])))) {
            return lv_itIndex;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1148

    lv_itIndex = 1;
    for ( ; ( (autoF3AAFE09_ai >= 0 && lv_itIndex <= autoF3AAFE09_ae) || (autoF3AAFE09_ai < 0 && lv_itIndex >= autoF3AAFE09_ae) ) ; lv_itIndex += autoF3AAFE09_ai ) {
        if ((PointGetX(RegionGetBoundsMax(lp_bound)) == PointGetX(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMax(lp_bound)) == PointGetY(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetBoundsMin(lp_bound)) == PointGetX(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMin(lp_bound)) == PointGetY(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetCenter(lp_bound)) == PointGetX(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetCenter(lp_bound)) == PointGetY(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex])))) {
            return lv_itIndex;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1148

    lv_itIndex = 1;
    for ( ; ( (autoF3AAFE09_ai >= 0 && lv_itIndex <= autoF3AAFE09_ae) || (autoF3AAFE09_ai < 0 && lv_itIndex >= autoF3AAFE09_ae) ) ; lv_itIndex += autoF3AAFE09_ai ) {
        if ((PointGetX(RegionGetBoundsMax(lp_bound)) == PointGetX(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMax(lp_bound)) == PointGetY(RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetBoundsMin(lp_bound)) == PointGetX(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetBoundsMin(lp_bound)) == PointGetY(RegionGetBoundsMin(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetX(RegionGetCenter(lp_bound)) == PointGetX(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex]))) && (PointGetY(RegionGetCenter(lp_bound)) == PointGetY(RegionGetCenter(libGame_gv_cameraBound_Regions[lv_itIndex])))) {
            return lv_itIndex;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1017

            lv_heroModelPickedCount += 1;
            lv_usedHero[lv_heroModelPickedCount] = libGame_gv_players[lv_itPlayer].lv_heroData.lv_heroCatalogLink;
            libNtve_gf_CreateModelAtPoint(lv_heroModel, RegionGetBoundsMax(RegionPlayableMap()));
            lv_heroActors[lv_heroModelPickedCount] = libNtve_gf_ActorLastCreated();
            ActorSend(libNtve_gf_ActorLastCreated(), "ExternalFinderAdd");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1050

            if ((lv_heroModel != null)) {
                lv_heroModelPickedCount += 1;
                libNtve_gf_CreateModelAtPoint(lv_heroModel, RegionGetBoundsMax(RegionPlayableMap()));
                lv_heroActors[lv_heroModelPickedCount] = libNtve_gf_ActorLastCreated();
                ActorSend(libNtve_gf_ActorLastCreated(), "ExternalFinderAdd");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:626

    // Implementation
    StatEventCreate("GameStart");
    StatEventAddDataFixed(StatEventLastCreated(), "MapSizeX", PointGetX(RegionGetBoundsMax(RegionEntireMap())));
    StatEventAddDataFixed(StatEventLastCreated(), "MapSizeY", PointGetY(RegionGetBoundsMax(RegionEntireMap())));
    StatEventSend(StatEventLastCreated());

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:627

    StatEventCreate("GameStart");
    StatEventAddDataFixed(StatEventLastCreated(), "MapSizeX", PointGetX(RegionGetBoundsMax(RegionEntireMap())));
    StatEventAddDataFixed(StatEventLastCreated(), "MapSizeY", PointGetY(RegionGetBoundsMax(RegionEntireMap())));
    StatEventSend(StatEventLastCreated());
    lv_i = 1;

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

    // Implementation
    if ((PointGetX(lv_casterPoint) <= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) <= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_targetPoint));
        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_casterXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_casterPoint));

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

    if ((PointGetX(lv_casterPoint) <= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) <= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_targetPoint));
        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_casterXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_casterPoint));
        lv_casterYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_casterPoint));

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

        lv_targetXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_targetPoint));
        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_casterXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_casterPoint));
        lv_casterYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_casterPoint));
        lv_targetAngle = AngleBetweenPoints(lv_casterPoint, lv_targetPoint);

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

        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_casterXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_casterPoint));
        lv_casterYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_casterPoint));
        lv_targetAngle = AngleBetweenPoints(lv_casterPoint, lv_targetPoint);
        lv_cosineofTargetAngle = Cos(lv_targetAngle);

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

        lv_cosineofTargetAngle = Cos(lv_targetAngle);
        if ((lv_cosineofTargetAngle > -0.001) && (lv_cosineofTargetAngle < 0.001)) {
            lv_abilityTargetPoint = Point(PointGetX(lv_targetPoint), PointGetY(RegionGetBoundsMax(RegionPlayableMap())));
        }
        else {

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

            lv_cosineofTargetAngle = Cos(lv_targetAngle);
            if ((lv_cosineofTargetAngle > -0.001) && (lv_cosineofTargetAngle < 0.001)) {
                lv_abilityTargetPoint = Point(PointGetX(RegionGetBoundsMax(RegionPlayableMap())), PointGetY(lv_targetPoint));
            }
            else {

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

    else if ((PointGetX(lv_casterPoint) >= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) <= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = PointGetX(lv_targetPoint);
        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_casterXToEdgeOfMap = PointGetX(lv_casterPoint);
        lv_casterYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_casterPoint));

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

        lv_targetYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_targetPoint));
        lv_casterXToEdgeOfMap = PointGetX(lv_casterPoint);
        lv_casterYToEdgeOfMap = (PointGetY(RegionGetBoundsMax(RegionPlayableMap())) - PointGetY(lv_casterPoint));
        lv_targetAngle = (AngleBetweenPoints(lv_casterPoint, lv_targetPoint) - 90.0);
        lv_cosineofTargetAngle = Cos(lv_targetAngle);

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

            lv_cosineofTargetAngle = Cos(lv_targetAngle);
            if ((lv_cosineofTargetAngle > -0.001) && (lv_cosineofTargetAngle < 0.001)) {
                lv_abilityTargetPoint = Point(PointGetX(lv_targetPoint), PointGetY(RegionGetBoundsMax(RegionPlayableMap())));
            }
            else {

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

    }
    else if ((PointGetX(lv_casterPoint) <= PointGetX(lv_targetPoint)) && (PointGetY(lv_casterPoint) >= PointGetY(lv_targetPoint))) {
        lv_targetXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_targetPoint));
        lv_targetYToEdgeOfMap = PointGetY(lv_targetPoint);
        lv_casterXToEdgeOfMap = (PointGetX(RegionGetBoundsMax(RegionPlayableMap())) - PointGetX(lv_casterPoint));