# Convert Rectangle To Region

Grammar — Region(minx, miny, maxx, maxy)
FlagsNative | Function

Returns a rectangular region from 4 bound values.

# Arguments

  • fixed — Min X
  • fixed — Min Y
  • fixed — Max X
  • fixed — Max Y

Returns — region

native region RegionRect(
	fixed minx,
	fixed miny,
	fixed maxx,
	fixed maxy,
);

Category: Region / Creation

# Examples

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

    lv_x = PointGetX(gv_cameraLocation);
    lv_y = PointGetY(gv_cameraLocation);
    lv_boundary = RegionRect((lv_x - 10.0), (lv_y - 7.0), (lv_x + 10.0), (lv_y + 7.0));
    return lv_boundary;
}

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

    lv_minBound = RegionGetBoundsMin(lv_boundary);
    lv_minBound = PointWithOffset(lv_minBound, -4.0, -2.0);
    lv_boundary = RegionRect(PointGetX(lv_minBound), PointGetY(lv_minBound), PointGetX(lv_maxBound), PointGetY(lv_maxBound));
    return lv_boundary;
}

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


    lv_currentSawPosition = UnitGetPosition(gv_terraTronSaw);
    if ((RegionContainsPoint(RegionRect(PointGetX(gv_screenLowerBound), PointGetY(gv_screenLowerBound), PointGetX(gv_screenUpperBound), PointGetY(gv_screenUpperBound)), lv_currentSawPosition) == false)) {
        gv_currentSawBounces += 1;
        if ((gv_currentSawBounces > gv_totalSawBounces)) {

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

        lv_pos = PointWithOffset(lv_pos, lv_beamUnit, 0.0);
    }
    lv_damageRegion = RegionRect((PointGetX(lv_posLeftTop) - 1.5), PointGetY(lv_posRightBot), (PointGetX(lv_posRightBot) + 1.5), PointGetY(lv_posLeftTop));
    autoBF15FEA3_n = 48;
    for (autoBF15FEA3_i = 1; autoBF15FEA3_i <= autoBF15FEA3_n; autoBF15FEA3_i += 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1008


    GameTimeOfDaySet("08:00:00");
    CameraSetBounds(PlayerGroupAll(), RegionRect(128.0, 2.0, 256.0, 195.0), true);
    libLbty_gf_AutoRevealRegion(RegionFromId(97), RegionFromId(97), gv_p01_USER);
    libLbty_gf_AutoRevealRegion(RegionFromId(17), RegionFromId(17), gv_p01_USER);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:12448

    Wait(0.2, c_timeGame);
    libNtve_gf_RestoreUnitSelection(gv_p01_USER);
    CameraSetBounds(PlayerGroupAll(), RegionRect(17.0, 12.0, 128.0, 203.0), true);
    CameraRestore(gv_p01_USER, 0.0, -1, 10);
    CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1279), 0.0, -1, 10, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:1123

    }

    gv_wall_of_Fire_DamageRegion = RegionRect(PointGetX(PointWithOffset(PointFromId(142), 0.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(UnitGetPosition(gv_wALLOFFIRE)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    gv_wall_of_Fire_VisionRegion = RegionRect(PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), -4.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), 3.0, 0.0)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    if ((ModI(TriggerGetExecCount(TriggerGetCurrent()), 4) == 0)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:1124


    gv_wall_of_Fire_DamageRegion = RegionRect(PointGetX(PointWithOffset(PointFromId(142), 0.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(UnitGetPosition(gv_wALLOFFIRE)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    gv_wall_of_Fire_VisionRegion = RegionRect(PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), -4.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), 3.0, 0.0)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    if ((ModI(TriggerGetExecCount(TriggerGetCurrent()), 4) == 0)) {
        libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal DoodadDeath");

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

    lv_x = PointGetX(gv_cameraLocation);
    lv_y = PointGetY(gv_cameraLocation);
    lv_boundary = RegionRect((lv_x - 10.0), (lv_y - 7.0), (lv_x + 10.0), (lv_y + 7.0));
    return lv_boundary;
}

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

    lv_minBound = RegionGetBoundsMin(lv_boundary);
    lv_minBound = PointWithOffset(lv_minBound, -4.0, -2.0);
    lv_boundary = RegionRect(PointGetX(lv_minBound), PointGetY(lv_minBound), PointGetX(lv_maxBound), PointGetY(lv_maxBound));
    return lv_boundary;
}

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


    lv_currentSawPosition = UnitGetPosition(gv_terraTronSaw);
    if ((RegionContainsPoint(RegionRect(PointGetX(gv_screenLowerBound), PointGetY(gv_screenLowerBound), PointGetX(gv_screenUpperBound), PointGetY(gv_screenUpperBound)), lv_currentSawPosition) == false)) {
        gv_currentSawBounces += 1;
        if ((gv_currentSawBounces > gv_totalSawBounces)) {

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

        lv_pos = PointWithOffset(lv_pos, lv_beamUnit, 0.0);
    }
    lv_damageRegion = RegionRect((PointGetX(lv_posLeftTop) - 1.5), PointGetY(lv_posRightBot), (PointGetX(lv_posRightBot) + 1.5), PointGetY(lv_posLeftTop));
    autoBF15FEA3_n = 48;
    for (autoBF15FEA3_i = 1; autoBF15FEA3_i <= autoBF15FEA3_n; autoBF15FEA3_i += 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1008


    GameTimeOfDaySet("08:00:00");
    CameraSetBounds(PlayerGroupAll(), RegionRect(128.0, 2.0, 256.0, 195.0), true);
    libLbty_gf_AutoRevealRegion(RegionFromId(97), RegionFromId(97), gv_p01_USER);
    libLbty_gf_AutoRevealRegion(RegionFromId(17), RegionFromId(17), gv_p01_USER);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:12448

    Wait(0.2, c_timeGame);
    libNtve_gf_RestoreUnitSelection(gv_p01_USER);
    CameraSetBounds(PlayerGroupAll(), RegionRect(17.0, 12.0, 128.0, 203.0), true);
    CameraRestore(gv_p01_USER, 0.0, -1, 10);
    CameraApplyInfo(gv_p01_USER, CameraInfoFromId(1279), 0.0, -1, 10, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus04.sc2mapMapScript.galaxy:1123

    }

    gv_wall_of_Fire_DamageRegion = RegionRect(PointGetX(PointWithOffset(PointFromId(142), 0.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(UnitGetPosition(gv_wALLOFFIRE)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    gv_wall_of_Fire_VisionRegion = RegionRect(PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), -4.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), 3.0, 0.0)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    if ((ModI(TriggerGetExecCount(TriggerGetCurrent()), 4) == 0)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus04.sc2mapMapScript.galaxy:1124


    gv_wall_of_Fire_DamageRegion = RegionRect(PointGetX(PointWithOffset(PointFromId(142), 0.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(UnitGetPosition(gv_wALLOFFIRE)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    gv_wall_of_Fire_VisionRegion = RegionRect(PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), -4.0, 16.0)), PointGetY(PointFromId(122)), PointGetX(PointWithOffset(UnitGetPosition(gv_wALLOFFIRE), 3.0, 0.0)), PointGetY(PointWithOffset(PointFromId(142), 0.0, 16.0)));
    if ((ModI(TriggerGetExecCount(TriggerGetCurrent()), 4) == 0)) {
        libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal DoodadDeath");

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:459

    lv_distance = DistanceBetweenPoints(gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint, gv_platformLocations[lp_nextLocation].lv_centerPoint);
    lv_visionPoint = gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint;
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = PointWithOffsetPolar(gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint, (lv_distance/2), lp_direction);
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:461

    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = PointWithOffsetPolar(gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint, (lv_distance/2), lp_direction);
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = gv_platformLocations[lp_nextLocation].lv_centerPoint;
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:463

    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = gv_platformLocations[lp_nextLocation].lv_centerPoint;
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    SoundPlayForPlayer(SoundLink("PMoebius01_PlatformMovementStart", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    libVCMI_gf_SendActorMessageToDoodadsInRegion("Signal UpStart", "Shadow_Platform_Ramp", RegionCircle(RegionGetCenter(RegionFromId(1)), 12.0));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:840

    // Implementation
    if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x8A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x8B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x8C"))) {
        VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(UnitGetPosition(lp_purifierUnit)) - 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) - 5.0), (PointGetX(UnitGetPosition(lp_purifierUnit)) + 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) + 5.0)), 6.0, false);
    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12C"))) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:843

    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12C"))) {
        VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(UnitGetPosition(lp_purifierUnit)) - 5.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) - 7.0), (PointGetX(UnitGetPosition(lp_purifierUnit)) + 5.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) + 7.0)), 6.0, false);
    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8C"))) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:846

    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8C"))) {
        VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(UnitGetPosition(lp_purifierUnit)) - 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) - 5.0), (PointGetX(UnitGetPosition(lp_purifierUnit)) + 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) + 5.0)), 6.0, false);
    }
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar03.sc2map/MapScript.galaxy:2565

    }

    gv_darkEnergyVisionRegion = RegionRect((PointGetX(UnitGetPosition(gv_dARK_ENERGY)) - 12.0), (PointGetY(UnitGetPosition(gv_dARK_ENERGY)) - 12.0), (PointGetX(UnitGetPosition(gv_dARK_ENERGY)) + 12.0), (PointGetY(UnitGetPosition(gv_dARK_ENERGY)) + 12.0));
    gv_darkEnergyBlackRegion = RegionCircle(PointWithOffsetPolar(UnitGetPosition(gv_dARK_ENERGY), 8.0, 180.0), 12.0);
    VisRevealArea(gv_pLAYER_01_USER, gv_darkEnergyVisionRegion, 2.0, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:3296

        UnitKill(auto7DE0A72C_var);
    }
    auto8B88948B_g = UnitGroup("ShadowCloudEpilogue01", c_playerAny, RegionRect(0.0, 0.0, 50.0, 60.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto8B88948B_u = UnitGroupCount(auto8B88948B_g, c_unitCountAll);
    for (;; auto8B88948B_u -= 1) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:459

    lv_distance = DistanceBetweenPoints(gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint, gv_platformLocations[lp_nextLocation].lv_centerPoint);
    lv_visionPoint = gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint;
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = PointWithOffsetPolar(gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint, (lv_distance/2), lp_direction);
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:461

    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = PointWithOffsetPolar(gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_centerPoint, (lv_distance/2), lp_direction);
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = gv_platformLocations[lp_nextLocation].lv_centerPoint;
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:463

    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    lv_visionPoint = gv_platformLocations[lp_nextLocation].lv_centerPoint;
    VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(lv_visionPoint) - 16.0), (PointGetY(lv_visionPoint) - 16.0), (PointGetX(lv_visionPoint) + 16.0), (PointGetY(lv_visionPoint) + 16.0)), 12.0, false);
    SoundPlayForPlayer(SoundLink("PMoebius01_PlatformMovementStart", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    libVCMI_gf_SendActorMessageToDoodadsInRegion("Signal UpStart", "Shadow_Platform_Ramp", RegionCircle(RegionGetCenter(RegionFromId(1)), 12.0));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:840

    // Implementation
    if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x8A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x8B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x8C"))) {
        VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(UnitGetPosition(lp_purifierUnit)) - 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) - 5.0), (PointGetX(UnitGetPosition(lp_purifierUnit)) + 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) + 5.0)), 6.0, false);
    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12C"))) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:843

    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock8x12C"))) {
        VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(UnitGetPosition(lp_purifierUnit)) - 5.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) - 7.0), (PointGetX(UnitGetPosition(lp_purifierUnit)) + 5.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) + 7.0)), 6.0, false);
    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8C"))) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:846

    }
    else if (((UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8A") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8B") || (UnitGetType(lp_purifierUnit) == "PurifierCellBlock12x8C"))) {
        VisRevealArea(gv_pLAYER_01_USER, RegionRect((PointGetX(UnitGetPosition(lp_purifierUnit)) - 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) - 5.0), (PointGetX(UnitGetPosition(lp_purifierUnit)) + 7.0), (PointGetY(UnitGetPosition(lp_purifierUnit)) + 5.0)), 6.0, false);
    }
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar03.sc2mapMapScript.galaxy:2565

    }

    gv_darkEnergyVisionRegion = RegionRect((PointGetX(UnitGetPosition(gv_dARK_ENERGY)) - 12.0), (PointGetY(UnitGetPosition(gv_dARK_ENERGY)) - 12.0), (PointGetX(UnitGetPosition(gv_dARK_ENERGY)) + 12.0), (PointGetY(UnitGetPosition(gv_dARK_ENERGY)) + 12.0));
    gv_darkEnergyBlackRegion = RegionCircle(PointWithOffsetPolar(UnitGetPosition(gv_dARK_ENERGY), 8.0, 180.0), 12.0);
    VisRevealArea(gv_pLAYER_01_USER, gv_darkEnergyVisionRegion, 2.0, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:3296

        UnitKill(auto7DE0A72C_var);
    }
    auto8B88948B_g = UnitGroup("ShadowCloudEpilogue01", c_playerAny, RegionRect(0.0, 0.0, 50.0, 60.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto8B88948B_u = UnitGroupCount(auto8B88948B_g, c_unitCountAll);
    for (;; auto8B88948B_u -= 1) {

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

    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:619

    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/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:1081


        if ((TimerGetRemaining(lv_evasionOrderCooldown) < 1)) {
            lv_civilianUnits = UnitGroup(null, 0, RegionRect((PointGetX(UnitGetPosition(lp_roadUnit)) - 3.0), (PointGetY(UnitGetPosition(lp_roadUnit)) - 1.7), (PointGetX(UnitGetPosition(lp_roadUnit)) + 3.0), (PointGetY(UnitGetPosition(lp_roadUnit)) + 1.7)), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            if ((UnitGroupCount(lv_civilianUnits, c_unitCountAlive) > 0)) {
                lv_closestUnit = UnitGroupClosestToPoint(lv_civilianUnits, UnitGetPosition(lp_roadUnit));

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:1170


        if ((TimerGetRemaining(lv_evasionOrderCooldown) < 1)) {
            lv_civilianUnits = UnitGroup(null, 0, RegionRect((PointGetX(UnitGetPosition(lp_roadUnit)) - 2.0), (PointGetY(UnitGetPosition(lp_roadUnit)) - 1.7), (PointGetX(UnitGetPosition(lp_roadUnit)) + 4.0), (PointGetY(UnitGetPosition(lp_roadUnit)) + 1.7)), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            if ((UnitGroupCount(lv_civilianUnits, c_unitCountAlive) > 0)) {
                lv_closestUnit = UnitGroupClosestToPoint(lv_civilianUnits, UnitGetPosition(lp_roadUnit));

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:1335


        if ((TimerGetRemaining(lv_evasionOrderCooldown) < 1)) {
            lv_civilianUnits = UnitGroup(null, 0, RegionRect((PointGetX(UnitGetPosition(lp_roadUnit)) - 3.0), (PointGetY(UnitGetPosition(lp_roadUnit)) - 1.7), (PointGetX(UnitGetPosition(lp_roadUnit)) + 3.5), (PointGetY(UnitGetPosition(lp_roadUnit)) + 1.7)), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            if ((UnitGroupCount(lv_civilianUnits, c_unitCountAlive) > 0)) {
                lv_closestUnit = UnitGroupClosestToPoint(lv_civilianUnits, UnitGetPosition(lp_roadUnit));

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:8287

        if (auto422937A2_var == null) { break; }
        if ((auto422937A2_var == gv_warhawk) && (UnitTestState(auto422937A2_var, c_unitStateInvulnerable) == false)) {
            if ((libNtve_gf_UnitInRegion(gv_artanis, RegionRect((PointGetX(UnitGetPosition(auto422937A2_var)) - 2.5), (PointGetY(UnitGetPosition(auto422937A2_var)) - 2.0), (PointGetX(UnitGetPosition(auto422937A2_var)) + 2.5), (PointGetY(UnitGetPosition(auto422937A2_var)) + 2.0))) == true) && (UnitGetPropertyFixed(gv_warhawk, c_unitPropHeight, c_unitPropCurrent) < 2.0)) {
                UnitCreateEffectUnit(auto422937A2_var, "VultureSectionCollisionDamage", gv_artanis);
            }

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:8293

        }
        else {
            if ((UnitGetOwner(auto422937A2_var) != gv_pLAYER_02_DOMINION2) && (UnitGetType(auto422937A2_var) != "Banshee") && (UnitTestState(auto422937A2_var, c_unitStateInvulnerable) == false) && (libNtve_gf_UnitInRegion(gv_artanis, RegionRect((PointGetX(UnitGetPosition(auto422937A2_var)) - 2.0), (PointGetY(UnitGetPosition(auto422937A2_var)) - 1.4), (PointGetX(UnitGetPosition(auto422937A2_var)) + 2.0), (PointGetY(UnitGetPosition(auto422937A2_var)) + 1.4))) == true)) {
                UnitCreateEffectUnit(gv_artanis, "VultureSectionCollisionDamage", auto422937A2_var);
                UnitCreateEffectUnit(auto422937A2_var, "VultureSectionCollisionDamage", gv_artanis);

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:8316

            if ((UnitGetType(auto2E5AEF57_var) != "Banshee") && (UnitTestState(auto2E5AEF57_var, c_unitStateInvulnerable) == false) && (((UnitGetOwner(auto2E5AEF57_var) == gv_pLAYER_02_DOMINION) && (UnitGetOwner(lv_currentUnit) == 0)) || ((UnitGetOwner(auto2E5AEF57_var) == gv_pLAYER_02_DOMINION) && (UnitGetOwner(lv_currentUnit) == gv_pLAYER_02_DOMINION2)) || ((UnitGetOwner(auto2E5AEF57_var) == 0) && (UnitGetOwner(lv_currentUnit) == gv_pLAYER_02_DOMINION2)))) {
                if ((auto2E5AEF57_var == gv_warhawk)) {
                    if ((libNtve_gf_UnitInRegion(lv_currentUnit, RegionRect((PointGetX(UnitGetPosition(auto2E5AEF57_var)) - 2.5), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) - 2.0), (PointGetX(UnitGetPosition(auto2E5AEF57_var)) + 2.5), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) + 2.0))) == true)) {
                        UnitCreateEffectUnit(auto2E5AEF57_var, "VultureSectionCollisionDamage", lv_currentUnit);
                    }

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:8322

                }
                else {
                    if ((libNtve_gf_UnitInRegion(lv_currentUnit, RegionRect((PointGetX(UnitGetPosition(auto2E5AEF57_var)) - 2.0), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) - 1.4), (PointGetX(UnitGetPosition(auto2E5AEF57_var)) + 2.0), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) + 1.4))) == true)) {
                        UnitCreateEffectUnit(lv_currentUnit, "VultureSectionCollisionDamage", auto2E5AEF57_var);
                        UnitCreateEffectUnit(auto2E5AEF57_var, "VultureSectionCollisionDamage", lv_currentUnit);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:2734

    auto941AB97A_var = 1;
    for ( ; auto941AB97A_var <= auto941AB97A_ae; auto941AB97A_var += 1 ) {
        libNtve_gf_ShowHideDoodadsInRegion(true, RegionRect(0.0, 0.0, (auto941AB97A_var * 20.0), 184.0), "RainSprinkle");
        Wait(5.0, c_timeReal);
    }

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:1081


        if ((TimerGetRemaining(lv_evasionOrderCooldown) < 1)) {
            lv_civilianUnits = UnitGroup(null, 0, RegionRect((PointGetX(UnitGetPosition(lp_roadUnit)) - 3.0), (PointGetY(UnitGetPosition(lp_roadUnit)) - 1.7), (PointGetX(UnitGetPosition(lp_roadUnit)) + 3.0), (PointGetY(UnitGetPosition(lp_roadUnit)) + 1.7)), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            if ((UnitGroupCount(lv_civilianUnits, c_unitCountAlive) > 0)) {
                lv_closestUnit = UnitGroupClosestToPoint(lv_civilianUnits, UnitGetPosition(lp_roadUnit));

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:1170


        if ((TimerGetRemaining(lv_evasionOrderCooldown) < 1)) {
            lv_civilianUnits = UnitGroup(null, 0, RegionRect((PointGetX(UnitGetPosition(lp_roadUnit)) - 2.0), (PointGetY(UnitGetPosition(lp_roadUnit)) - 1.7), (PointGetX(UnitGetPosition(lp_roadUnit)) + 4.0), (PointGetY(UnitGetPosition(lp_roadUnit)) + 1.7)), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            if ((UnitGroupCount(lv_civilianUnits, c_unitCountAlive) > 0)) {
                lv_closestUnit = UnitGroupClosestToPoint(lv_civilianUnits, UnitGetPosition(lp_roadUnit));

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:1335


        if ((TimerGetRemaining(lv_evasionOrderCooldown) < 1)) {
            lv_civilianUnits = UnitGroup(null, 0, RegionRect((PointGetX(UnitGetPosition(lp_roadUnit)) - 3.0), (PointGetY(UnitGetPosition(lp_roadUnit)) - 1.7), (PointGetX(UnitGetPosition(lp_roadUnit)) + 3.5), (PointGetY(UnitGetPosition(lp_roadUnit)) + 1.7)), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            if ((UnitGroupCount(lv_civilianUnits, c_unitCountAlive) > 0)) {
                lv_closestUnit = UnitGroupClosestToPoint(lv_civilianUnits, UnitGetPosition(lp_roadUnit));

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:8287

        if (auto422937A2_var == null) { break; }
        if ((auto422937A2_var == gv_warhawk) && (UnitTestState(auto422937A2_var, c_unitStateInvulnerable) == false)) {
            if ((libNtve_gf_UnitInRegion(gv_artanis, RegionRect((PointGetX(UnitGetPosition(auto422937A2_var)) - 2.5), (PointGetY(UnitGetPosition(auto422937A2_var)) - 2.0), (PointGetX(UnitGetPosition(auto422937A2_var)) + 2.5), (PointGetY(UnitGetPosition(auto422937A2_var)) + 2.0))) == true) && (UnitGetPropertyFixed(gv_warhawk, c_unitPropHeight, c_unitPropCurrent) < 2.0)) {
                UnitCreateEffectUnit(auto422937A2_var, "VultureSectionCollisionDamage", gv_artanis);
            }

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:8293

        }
        else {
            if ((UnitGetOwner(auto422937A2_var) != gv_pLAYER_02_DOMINION2) && (UnitGetType(auto422937A2_var) != "Banshee") && (UnitTestState(auto422937A2_var, c_unitStateInvulnerable) == false) && (libNtve_gf_UnitInRegion(gv_artanis, RegionRect((PointGetX(UnitGetPosition(auto422937A2_var)) - 2.0), (PointGetY(UnitGetPosition(auto422937A2_var)) - 1.4), (PointGetX(UnitGetPosition(auto422937A2_var)) + 2.0), (PointGetY(UnitGetPosition(auto422937A2_var)) + 1.4))) == true)) {
                UnitCreateEffectUnit(gv_artanis, "VultureSectionCollisionDamage", auto422937A2_var);
                UnitCreateEffectUnit(auto422937A2_var, "VultureSectionCollisionDamage", gv_artanis);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:8316

            if ((UnitGetType(auto2E5AEF57_var) != "Banshee") && (UnitTestState(auto2E5AEF57_var, c_unitStateInvulnerable) == false) && (((UnitGetOwner(auto2E5AEF57_var) == gv_pLAYER_02_DOMINION) && (UnitGetOwner(lv_currentUnit) == 0)) || ((UnitGetOwner(auto2E5AEF57_var) == gv_pLAYER_02_DOMINION) && (UnitGetOwner(lv_currentUnit) == gv_pLAYER_02_DOMINION2)) || ((UnitGetOwner(auto2E5AEF57_var) == 0) && (UnitGetOwner(lv_currentUnit) == gv_pLAYER_02_DOMINION2)))) {
                if ((auto2E5AEF57_var == gv_warhawk)) {
                    if ((libNtve_gf_UnitInRegion(lv_currentUnit, RegionRect((PointGetX(UnitGetPosition(auto2E5AEF57_var)) - 2.5), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) - 2.0), (PointGetX(UnitGetPosition(auto2E5AEF57_var)) + 2.5), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) + 2.0))) == true)) {
                        UnitCreateEffectUnit(auto2E5AEF57_var, "VultureSectionCollisionDamage", lv_currentUnit);
                    }

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2mapMapScript.galaxy:8322

                }
                else {
                    if ((libNtve_gf_UnitInRegion(lv_currentUnit, RegionRect((PointGetX(UnitGetPosition(auto2E5AEF57_var)) - 2.0), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) - 1.4), (PointGetX(UnitGetPosition(auto2E5AEF57_var)) + 2.0), (PointGetY(UnitGetPosition(auto2E5AEF57_var)) + 1.4))) == true)) {
                        UnitCreateEffectUnit(lv_currentUnit, "VultureSectionCollisionDamage", auto2E5AEF57_var);
                        UnitCreateEffectUnit(auto2E5AEF57_var, "VultureSectionCollisionDamage", lv_currentUnit);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:2734

    auto941AB97A_var = 1;
    for ( ; auto941AB97A_var <= auto941AB97A_ae; auto941AB97A_var += 1 ) {
        libNtve_gf_ShowHideDoodadsInRegion(true, RegionRect(0.0, 0.0, (auto941AB97A_var * 20.0), 184.0), "RainSprinkle");
        Wait(5.0, c_timeReal);
    }

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

            lv_spawnAttempt = 1;
            for ( ; ( (auto6C3FC468_ai >= 0 && lv_spawnAttempt <= auto6C3FC468_ae) || (auto6C3FC468_ai < 0 && lv_spawnAttempt >= auto6C3FC468_ae) ) ; lv_spawnAttempt += auto6C3FC468_ai ) {
                lv_spawnLocation = RegionRandomPoint(RegionRect((PointGetX(PlayerStartLocation(lv_indexPlayer))-50.0), (PointGetY(PlayerStartLocation(lv_indexPlayer))-30.0), (PointGetX(PlayerStartLocation(lv_indexPlayer))+50.0), (PointGetY(PlayerStartLocation(lv_indexPlayer))+30.0)));
                if (((PathingType(lv_spawnLocation) != c_pathingGround) || (PointPathingIsConnected(lv_spawnLocation, PlayerStartLocation(lv_indexPlayer)) == false) || (DistanceBetweenPoints(lv_spawnLocation, CameraGetTarget(libCOOC_gf_CC_PlayerAlly(lv_indexPlayer))) <= 20.0) || (DistanceBetweenPoints(lv_spawnLocation, CameraGetTarget(lv_indexPlayer)) <= 20.0))) {
                    continue;