# Remove Unit Group From All Waves

Grammar — Remove group|Unit Group from all waves
FlagsNative | Action

Removes a group of units from any waves they are in.

# Arguments

  • unitgroup — Group

Returns — void

native void AIRemoveGroupFromAnyWaves(unitgroup ug);

Category: AI / MiscCampaign / Actions

# Examples

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

    }
    UnitRemove(lv_escortUnit);
    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);

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


    // Implementation
    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);

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

    }
    UnitRemove(lv_escortUnit);
    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);

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


    // Implementation
    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);