# Set Target Region For Attack/Defense Waves

Grammar — Set the target for player player attack (or defense) waves to be the region region with replace behavior replaceType.
FlagsNative | Action

Sets the target of a player’s attack (or defense) waves to a region.

# Arguments

  • int — Attacker
  • region — Region
  • int<preset::ReplaceType> — ReplaceType

Returns — void

native void AIAttackWaveSetTargetRegion(
	int player,
	region r,
	int replaceType,
);

Category: AI / AttackWaves / Actions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:3753

        UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
        AIAttackWaveSetGatherPoint(gv_p08_DOMINION, UnitGetPosition(UnitFromId(808)));
        AIAttackWaveSetTargetRegion(gv_p08_DOMINION, RegionCircle(UnitGetPosition(UnitFromId(808)), 10.0), 0);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1414), false);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1413), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:3851

        UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
        AIAttackWaveSetGatherPoint(gv_p08_DOMINION, UnitGetPosition(UnitFromId(806)));
        AIAttackWaveSetTargetRegion(gv_p08_DOMINION, RegionCircle(UnitGetPosition(UnitFromId(806)), 10.0), 0);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1416), false);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1418), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:3997

        UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
        AIAttackWaveSetGatherPoint(gv_p08_DOMINION, UnitGetPosition(UnitFromId(807)));
        AIAttackWaveSetTargetRegion(gv_p08_DOMINION, RegionCircle(UnitGetPosition(UnitFromId(807)), 10.0), 0);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1419), false);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1516), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1188

            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(13), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(13)));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1212

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(14)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1237

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(15)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1263

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(16)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(16), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1289

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(17)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(17), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1327

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(13)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(13), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1367

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(16)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(16), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1408

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(17)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(17), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1451

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(15)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:1491

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(14)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 1, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:3753

        UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
        AIAttackWaveSetGatherPoint(gv_p08_DOMINION, UnitGetPosition(UnitFromId(808)));
        AIAttackWaveSetTargetRegion(gv_p08_DOMINION, RegionCircle(UnitGetPosition(UnitFromId(808)), 10.0), 0);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1414), false);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1413), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:3851

        UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
        AIAttackWaveSetGatherPoint(gv_p08_DOMINION, UnitGetPosition(UnitFromId(806)));
        AIAttackWaveSetTargetRegion(gv_p08_DOMINION, RegionCircle(UnitGetPosition(UnitFromId(806)), 10.0), 0);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1416), false);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1418), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:3997

        UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
        AIAttackWaveSetGatherPoint(gv_p08_DOMINION, UnitGetPosition(UnitFromId(807)));
        AIAttackWaveSetTargetRegion(gv_p08_DOMINION, RegionCircle(UnitGetPosition(UnitFromId(807)), 10.0), 0);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1419), false);
        AIAttackWaveAddWaypoint(gv_p08_DOMINION, PointFromId(1516), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1188

            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(13), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(13)));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1212

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(14)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1237

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(15)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1263

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(16)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(16), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1289

            AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(17)));
            AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(17), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
            AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
            AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1327

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(13)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(13), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1367

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(16)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(16), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1408

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(17)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(17), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1451

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(15)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 0, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:1491

    AIAttackWaveSetGatherPoint(gv_pLAYER_02_ScriptedTOSS, RegionRandomPoint(RegionFromId(14)));
    AIAttackWaveUseGroup(gv_pLAYER_02_ScriptedTOSS, UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_ScriptedTOSS, RegionFromId(3), 0);
    AIAttackWaveSend(gv_pLAYER_02_ScriptedTOSS, 1, false);
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:536

    }
    AIAttackWaveSend(gv_pLAYER_02_DOMINION222, 0, false);
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_DOMINION, RegionCircle(gv_templeDefensePoint, 6.0), 0);
    AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION, UnitGetPosition(lv_hybrid));
    AIAttackWaveUseUnit(gv_pLAYER_02_DOMINION, lv_hybrid);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:3647

    TriggerExecute(gt_KerriganInitialWaveGatheringQ, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_05_KERRIGAN_S01, PointFromId(506));
    AIAttackWaveSetTargetRegion(gv_pLAYER_05_KERRIGAN_S01, RegionFromId(4), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_05_KERRIGAN_S01);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:3737

    TriggerExecute(gt_Kerrigan05WaveGathering, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_05_KERRIGAN_S01, PointFromId(506));
    AIAttackWaveSetTargetRegion(gv_pLAYER_05_KERRIGAN_S01, RegionFromId(4), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_05_KERRIGAN_S01);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:3987

    TriggerExecute(gt_Kerrigan06WaveGathering, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_06_KERRIGAN_S02, PointFromId(507));
    AIAttackWaveSetTargetRegion(gv_pLAYER_06_KERRIGAN_S02, RegionFromId(5), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_06_KERRIGAN_S02);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:4257

    TriggerExecute(gt_Kerrigan07RevealAndWarnFinalBaseTransmissionQ, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_07_KERRIGAN_S03, PointFromId(530));
    AIAttackWaveSetTargetRegion(gv_pLAYER_07_KERRIGAN_S03, RegionFromId(6), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_07_KERRIGAN_S03);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:4352

    TriggerExecute(gt_Kerrigan07WaveGathering, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_07_KERRIGAN_S03, PointFromId(530));
    AIAttackWaveSetTargetRegion(gv_pLAYER_07_KERRIGAN_S03, RegionFromId(6), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_07_KERRIGAN_S03);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2mapMapScript.galaxy:536

    }
    AIAttackWaveSend(gv_pLAYER_02_DOMINION222, 0, false);
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_DOMINION, RegionCircle(gv_templeDefensePoint, 6.0), 0);
    AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION, UnitGetPosition(lv_hybrid));
    AIAttackWaveUseUnit(gv_pLAYER_02_DOMINION, lv_hybrid);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:3647

    TriggerExecute(gt_KerriganInitialWaveGatheringQ, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_05_KERRIGAN_S01, PointFromId(506));
    AIAttackWaveSetTargetRegion(gv_pLAYER_05_KERRIGAN_S01, RegionFromId(4), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_05_KERRIGAN_S01);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:3737

    TriggerExecute(gt_Kerrigan05WaveGathering, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_05_KERRIGAN_S01, PointFromId(506));
    AIAttackWaveSetTargetRegion(gv_pLAYER_05_KERRIGAN_S01, RegionFromId(4), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_05_KERRIGAN_S01);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:3987

    TriggerExecute(gt_Kerrigan06WaveGathering, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_06_KERRIGAN_S02, PointFromId(507));
    AIAttackWaveSetTargetRegion(gv_pLAYER_06_KERRIGAN_S02, RegionFromId(5), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_06_KERRIGAN_S02);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:4257

    TriggerExecute(gt_Kerrigan07RevealAndWarnFinalBaseTransmissionQ, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_07_KERRIGAN_S03, PointFromId(530));
    AIAttackWaveSetTargetRegion(gv_pLAYER_07_KERRIGAN_S03, RegionFromId(6), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_07_KERRIGAN_S03);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:4352

    TriggerExecute(gt_Kerrigan07WaveGathering, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_07_KERRIGAN_S03, PointFromId(530));
    AIAttackWaveSetTargetRegion(gv_pLAYER_07_KERRIGAN_S03, RegionFromId(6), 0);
    AIAttackWaveSetGatherEarlyNoReplace(gv_pLAYER_07_KERRIGAN_S03);
    AIAttackWaveAddUnits3(30, 30, 30, "HotSRaptor");

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier01.sc2map/MapScript.galaxy:2883

        Wait(0.1, c_timeAI);
        AIAttackWaveSetGatherPoint(gv_pLAYER_02_TALDARIM, UnitGetPosition(UnitLastCreated()));
        AIAttackWaveSetTargetRegion(gv_pLAYER_02_TALDARIM, RegionFromId(36), 0);
        AIAttackWaveUseUnit(gv_pLAYER_02_TALDARIM, UnitLastCreated());
        AIAttackWaveSend(gv_pLAYER_02_TALDARIM, 0, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier02.sc2map/MapScript.galaxy:571

            lv_defendRegion = RegionFromId(20);
        }
        AIAttackWaveSetTargetRegion(lp_player, lv_defendRegion, 0);
        AIAttackWaveSetGatherPoint(lp_player, lp_position);
        AIAttackWaveUseGroup(lp_player, gv_caveZergGroup);

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

    AIRemoveGroupFromAnyWaves(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION7, UnitGroupCenterOfGroup(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_DOMINION7, gv_zergBase[lp_chosenZergBaseTarget].lv_baseRegion, 0);
    AIAttackWaveUseGroup(gv_pLAYER_02_DOMINION7, gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSend(gv_pLAYER_02_DOMINION7, 0, true);

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

    AIRemoveGroupFromAnyWaves(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION7, UnitGroupCenterOfGroup(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_DOMINION7, gv_zergBase[lp_zergBaseIndex].lv_waveDespawnRegion, 0);
    AIAttackWaveUseGroup(gv_pLAYER_02_DOMINION7, gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSend(gv_pLAYER_02_DOMINION7, 0, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:626

        if (((lv_attackTargetList[1] == gv_celestialLocks[1].lv_captureRegion) || (lv_attackTargetList[1] == gv_celestialLocks[4].lv_captureRegion) || (lv_attackTargetList[1] == gv_celestialLocks[5].lv_captureRegion))) {
            if ((lp_player == gv_pLAYER_02_TALDARIM)) {
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(432), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(1003));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:630

            }
            else {
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(907), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(905));
            }

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

        else {
            if ((lp_player == gv_pLAYER_02_TALDARIM)) {
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(344), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(1002));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:641

            else {
                lv_lowerRightAttack = true;
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(452), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(904));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:705

            if ((gf_AttackRegionisValid(lv_attackTargetList[lv_currentValidTarget]) == true)) {
                AIRemoveGroupFromAnyWavesAndSetHome(lv_attackWaveUnits, UnitGroupCenterOfGroup(lv_attackWaveUnits));
                AIAttackWaveSetTargetRegion(lp_player, lv_attackTargetList[lv_currentValidTarget], 0);
                AIAttackWaveSetGatherPoint(lp_player, UnitGroupCenterOfGroup(lv_attackWaveUnits));
                if ((lv_lowerRightAttack == true) && ((lv_attackTargetList[lv_currentValidTarget] == RegionFromId(32)) || (lv_attackTargetList[lv_currentValidTarget] == RegionFromId(33)))) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier01.sc2mapMapScript.galaxy:2883

        Wait(0.1, c_timeAI);
        AIAttackWaveSetGatherPoint(gv_pLAYER_02_TALDARIM, UnitGetPosition(UnitLastCreated()));
        AIAttackWaveSetTargetRegion(gv_pLAYER_02_TALDARIM, RegionFromId(36), 0);
        AIAttackWaveUseUnit(gv_pLAYER_02_TALDARIM, UnitLastCreated());
        AIAttackWaveSend(gv_pLAYER_02_TALDARIM, 0, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier02.sc2mapMapScript.galaxy:571

            lv_defendRegion = RegionFromId(20);
        }
        AIAttackWaveSetTargetRegion(lp_player, lv_defendRegion, 0);
        AIAttackWaveSetGatherPoint(lp_player, lp_position);
        AIAttackWaveUseGroup(lp_player, gv_caveZergGroup);

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

    AIRemoveGroupFromAnyWaves(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION7, UnitGroupCenterOfGroup(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_DOMINION7, gv_zergBase[lp_chosenZergBaseTarget].lv_baseRegion, 0);
    AIAttackWaveUseGroup(gv_pLAYER_02_DOMINION7, gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSend(gv_pLAYER_02_DOMINION7, 0, true);

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

    AIRemoveGroupFromAnyWaves(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION7, UnitGroupCenterOfGroup(gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup));
    AIAttackWaveSetTargetRegion(gv_pLAYER_02_DOMINION7, gv_zergBase[lp_zergBaseIndex].lv_waveDespawnRegion, 0);
    AIAttackWaveUseGroup(gv_pLAYER_02_DOMINION7, gv_purifierStasisChambers[lp_containmentTowerIndex].lv_warpathGroup);
    AIAttackWaveSend(gv_pLAYER_02_DOMINION7, 0, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2mapMapScript.galaxy:626

        if (((lv_attackTargetList[1] == gv_celestialLocks[1].lv_captureRegion) || (lv_attackTargetList[1] == gv_celestialLocks[4].lv_captureRegion) || (lv_attackTargetList[1] == gv_celestialLocks[5].lv_captureRegion))) {
            if ((lp_player == gv_pLAYER_02_TALDARIM)) {
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(432), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(1003));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2mapMapScript.galaxy:630

            }
            else {
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(907), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(905));
            }

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

        else {
            if ((lp_player == gv_pLAYER_02_TALDARIM)) {
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(344), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(1002));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2mapMapScript.galaxy:641

            else {
                lv_lowerRightAttack = true;
                AIAttackWaveSetTargetRegion(lp_player, RegionCircle(PointFromId(452), 4.0), 0);
                AIAttackWaveSetGatherPoint(lp_player, PointFromId(904));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2mapMapScript.galaxy:705

            if ((gf_AttackRegionisValid(lv_attackTargetList[lv_currentValidTarget]) == true)) {
                AIRemoveGroupFromAnyWavesAndSetHome(lv_attackWaveUnits, UnitGroupCenterOfGroup(lv_attackWaveUnits));
                AIAttackWaveSetTargetRegion(lp_player, lv_attackTargetList[lv_currentValidTarget], 0);
                AIAttackWaveSetGatherPoint(lp_player, UnitGroupCenterOfGroup(lv_attackWaveUnits));
                if ((lv_lowerRightAttack == true) && ((lv_attackTargetList[lv_currentValidTarget] == RegionFromId(32)) || (lv_attackTargetList[lv_currentValidTarget] == RegionFromId(33)))) {

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:6379

    TriggerEnable(TriggerGetCurrent(), false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_08_FERALZERG_INSIDE, RegionGetCenter(RegionFromId(55)));
    AIAttackWaveSetTargetRegion(gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(84), 0);
    AIAttackWaveUseGroup(gv_pLAYER_08_FERALZERG_INSIDE, UnitGroup("Zergling", gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(55), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSend(gv_pLAYER_08_FERALZERG_INSIDE, 0, false);

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:6599

    TriggerExecute(gt_S3OutsideShuttlesTransmissionQ, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_08_FERALZERG_INSIDE, RegionGetCenter(RegionFromId(85)));
    AIAttackWaveSetTargetRegion(gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(95), 0);
    AIAttackWaveUseGroup(gv_pLAYER_08_FERALZERG_INSIDE, UnitGroup(null, gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(85), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSend(gv_pLAYER_08_FERALZERG_INSIDE, 0, false);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:6379

    TriggerEnable(TriggerGetCurrent(), false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_08_FERALZERG_INSIDE, RegionGetCenter(RegionFromId(55)));
    AIAttackWaveSetTargetRegion(gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(84), 0);
    AIAttackWaveUseGroup(gv_pLAYER_08_FERALZERG_INSIDE, UnitGroup("Zergling", gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(55), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSend(gv_pLAYER_08_FERALZERG_INSIDE, 0, false);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:6599

    TriggerExecute(gt_S3OutsideShuttlesTransmissionQ, true, false);
    AIAttackWaveSetGatherPoint(gv_pLAYER_08_FERALZERG_INSIDE, RegionGetCenter(RegionFromId(85)));
    AIAttackWaveSetTargetRegion(gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(95), 0);
    AIAttackWaveUseGroup(gv_pLAYER_08_FERALZERG_INSIDE, UnitGroup(null, gv_pLAYER_08_FERALZERG_INSIDE, RegionFromId(85), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    AIAttackWaveSend(gv_pLAYER_08_FERALZERG_INSIDE, 0, false);