# Unit Group Is Dead

Grammar — All units in units|Unit Group are dead
FlagsFunction

Returns true if all units in the unit group are dead. An empty unit group is considered to be dead.

# Arguments

  • unitgroup — Units

Returns — bool

bool libNtve_gf_UnitGroupIsDead(unitgroup lp_units);

Category: Unit / Basic

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1335

    UnitIssueOrder(UnitFromId(2147), OrderTargetingUnit(AbilityCommand("attack", 0), UnitLastCreated()), c_orderQueueReplace);
    UnitGroupAdd(lv_unitgroup, UnitLastCreated());
    while (!(((libNtve_gf_UnitGroupIsDead(lv_unitgroup) == true) || (UnitIsAlive(UnitLastCreated()) == false)))) {
        Wait(0.5, c_timeGame);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:4957

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_civilianSpawners) == true))) {
            return false;
        }

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

            UnitGroupRemove(lv_doomedUnits, lv_u);
        }
        if ((libNtve_gf_UnitGroupIsDead(lv_doomedUnits) == true)) {
            return true;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:373

    // Automatic Variable Declarations
    // Implementation
    if ((gv_currentWaveSources == null) && (libNtve_gf_UnitGroupIsDead(lp_powerSource) == false)) {
        gv_currentWaveSources = lp_powerSource;
        AIAttackWaveSetGatherPoint(gv_currentWaveAttacker, lp_gatherPoint);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:558

    lv_defenderIndex = 0;
    while (true) {
        if (((libNtve_gf_UnitGroupIsDead(gv_infestationOverlords[lp_colonyIndex]) == true) || (lv_defenderIndex >= gv_infestationDefenderCount[lp_colonyIndex]) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
            return ;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4578

        UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner01", "Loading Screen Restart 2"));
        gv_patrolWaveSpawnedTop = true;
        while (!((libNtve_gf_UnitGroupIsDead(gv_patrolTop) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4663

        UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner01", "Loading Screen Restart 2"));
        gv_patrolWaveSpawnedBottom = true;
        while (!((libNtve_gf_UnitGroupIsDead(gv_patrolBottom) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4733

        UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner01", "Loading Screen Restart 2"));
        gv_patrolWaveSpawnedSingle = true;
        while (!((libNtve_gf_UnitGroupIsDead(gv_patrolSingle) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4794

            }

            if ((libNtve_gf_UnitGroupIsDead(gv_patrolTop) == true)) {
                PingSetVisible(lv_topPing, false);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4812


            }
            if ((libNtve_gf_UnitGroupIsDead(gv_patrolBottom) == true)) {
                PingSetVisible(lv_bottomPing, false);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4844

            }

            if ((libNtve_gf_UnitGroupIsDead(gv_patrolSingle) == true)) {
                PingSetVisible(lv_singlePing, false);
            }

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

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_enemyGroupTurretArea) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1700


        UnitGroupClear(lv_dominionAttackSquad);
        if ((libNtve_gf_UnitGroupIsDead(gv_initialAttackSquad) == true)) {
            auto55B38AC9_n = gv_dominionAttackSquadSize;
            for (auto55B38AC9_i = 1; auto55B38AC9_i <= auto55B38AC9_n; auto55B38AC9_i += 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1719

        UnitGroupIssueOrder(lv_dominionAttackSquad, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(622)), c_orderQueueAddToEnd);
        UnitGroupIssueOrder(lv_dominionAttackSquad, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(RegionFromId(22))), c_orderQueueAddToEnd);
        while (!((libNtve_gf_UnitGroupIsDead(lv_dominionAttackSquad) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:2706

    TriggerExecute(gt_HellionAttack, true, false);
    TriggerQueueEnter();
    if ((libNtve_gf_UnitGroupIsDead(gv_hellions) == true)) {
        return true;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:3190

    while (true) {
        Wait(1.0, c_timeGame);
        if ((libNtve_gf_UnitGroupIsDead(lv_minerGroup) == true)) {
            return true;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:3218

    }
    while (true) {
        if ((libNtve_gf_UnitGroupIsDead(lv_minerGroup) == true)) {
            return true;
        }

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

    TriggerEnable(gt_RebelMarines01Dead, true);
    TriggerExecute(gt_TransmissionRebelMarines01MaydayQ, true, true);
    if ((gv_rebelMarinesFound01 == false) && (libNtve_gf_UnitGroupIsDead(gv_rebelMarines01) == false)) {
        MinimapPing(PlayerGroupSingle(gv_pLAYER01_USER), RegionGetCenter(RegionFromId(72)), 6.0, Color(100.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/DC769176"), null, RegionGetCenter(RegionFromId(72)));

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

    TriggerEnable(gt_RebelMarines02Dead, true);
    TriggerExecute(gt_TransmissionRebelMarines02MaydayQ, true, true);
    if ((gv_rebelMarinesFound02 == false) && (libNtve_gf_UnitGroupIsDead(gv_rebelMarines02) == false)) {
        MinimapPing(PlayerGroupSingle(gv_pLAYER01_USER), RegionGetCenter(RegionFromId(3)), 6.0, Color(100.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/14F8338E"), null, RegionGetCenter(RegionFromId(3)));

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

    TriggerEnable(gt_RebelMarines03Dead, true);
    TriggerExecute(gt_TransmissionRebelMarines03MaydayQ, true, true);
    if ((gv_rebelMarinesFound03 == false) && (libNtve_gf_UnitGroupIsDead(gv_rebelMarines03) == false)) {
        MinimapPing(PlayerGroupSingle(gv_pLAYER01_USER), RegionGetCenter(RegionFromId(71)), 6.0, Color(100.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/CAB93CB5"), null, RegionGetCenter(RegionFromId(71)));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:3304

    MinimapPing(PlayerGroupAll(), RegionGetCenter(RegionFromId(18)), 2.0, Color(0.00, 100.00, 0.00));
    Wait(2.0, c_timeReal);
    if ((libNtve_gf_UnitGroupIsDead(gv_toshReapers) == false)) {
        SoundPlay(SoundLink("Reaper_What", 1), PlayerGroupAll(), 100.0, 0.0);
        SoundWait(SoundLastPlayed(), 0.0, c_soundOffsetEnd);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2083

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_cellBlockAJerksGroup) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2454

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_cellBlockBJerksGroup) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2619

    }

    if ((libNtve_gf_UnitGroupIsDead(gv_p2LZGuards) == true)) {
        TriggerEnable(TriggerGetCurrent(), false);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:4385

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup("Marine", gv_p01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:4950

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup("Marine", gv_p01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:5479

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup("Marine", gv_p01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:4474

    libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
    TriggerQueueExit();
    while (!((libNtve_gf_UnitGroupIsDead(gv__2IntroBanelings) == true))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5972

    gf__3ForcePopEgg(UnitFromId(1416));
    gf__3ForcePopEgg(UnitFromId(516));
    while (!((libNtve_gf_UnitGroupIsDead(gv__3BullyGroup1) == true) && (UnitGroupCount(UnitGroup(null, gv_p2_ZERG, RegionFromId(33), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:6139

    gf__3ForcePopEgg(UnitFromId(105));
    gf__3ForcePopEgg(UnitFromId(66));
    while (!((libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2) == true) && (libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2MoverShooters) == true) && (UnitGroupCount(UnitGroup(null, gv_p2_ZERG, RegionFromId(83), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:6139

    gf__3ForcePopEgg(UnitFromId(105));
    gf__3ForcePopEgg(UnitFromId(66));
    while (!((libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2) == true) && (libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2MoverShooters) == true) && (UnitGroupCount(UnitGroup(null, gv_p2_ZERG, RegionFromId(83), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2188

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_overseerHydralisks) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:1335

    UnitIssueOrder(UnitFromId(2147), OrderTargetingUnit(AbilityCommand("attack", 0), UnitLastCreated()), c_orderQueueReplace);
    UnitGroupAdd(lv_unitgroup, UnitLastCreated());
    while (!(((libNtve_gf_UnitGroupIsDead(lv_unitgroup) == true) || (UnitIsAlive(UnitLastCreated()) == false)))) {
        Wait(0.5, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:4957

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_civilianSpawners) == true))) {
            return false;
        }

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

            UnitGroupRemove(lv_doomedUnits, lv_u);
        }
        if ((libNtve_gf_UnitGroupIsDead(lv_doomedUnits) == true)) {
            return true;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:373

    // Automatic Variable Declarations
    // Implementation
    if ((gv_currentWaveSources == null) && (libNtve_gf_UnitGroupIsDead(lp_powerSource) == false)) {
        gv_currentWaveSources = lp_powerSource;
        AIAttackWaveSetGatherPoint(gv_currentWaveAttacker, lp_gatherPoint);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:558

    lv_defenderIndex = 0;
    while (true) {
        if (((libNtve_gf_UnitGroupIsDead(gv_infestationOverlords[lp_colonyIndex]) == true) || (lv_defenderIndex >= gv_infestationDefenderCount[lp_colonyIndex]) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
            return ;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:4578

        UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner01", "Loading Screen Restart 2"));
        gv_patrolWaveSpawnedTop = true;
        while (!((libNtve_gf_UnitGroupIsDead(gv_patrolTop) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:4663

        UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner01", "Loading Screen Restart 2"));
        gv_patrolWaveSpawnedBottom = true;
        while (!((libNtve_gf_UnitGroupIsDead(gv_patrolBottom) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:4733

        UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner01", "Loading Screen Restart 2"));
        gv_patrolWaveSpawnedSingle = true;
        while (!((libNtve_gf_UnitGroupIsDead(gv_patrolSingle) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:4794

            }

            if ((libNtve_gf_UnitGroupIsDead(gv_patrolTop) == true)) {
                PingSetVisible(lv_topPing, false);
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:4812


            }
            if ((libNtve_gf_UnitGroupIsDead(gv_patrolBottom) == true)) {
                PingSetVisible(lv_bottomPing, false);
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:4844

            }

            if ((libNtve_gf_UnitGroupIsDead(gv_patrolSingle) == true)) {
                PingSetVisible(lv_singlePing, false);
            }

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

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_enemyGroupTurretArea) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:1700


        UnitGroupClear(lv_dominionAttackSquad);
        if ((libNtve_gf_UnitGroupIsDead(gv_initialAttackSquad) == true)) {
            auto55B38AC9_n = gv_dominionAttackSquadSize;
            for (auto55B38AC9_i = 1; auto55B38AC9_i <= auto55B38AC9_n; auto55B38AC9_i += 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:1719

        UnitGroupIssueOrder(lv_dominionAttackSquad, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(622)), c_orderQueueAddToEnd);
        UnitGroupIssueOrder(lv_dominionAttackSquad, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(RegionFromId(22))), c_orderQueueAddToEnd);
        while (!((libNtve_gf_UnitGroupIsDead(lv_dominionAttackSquad) == true))) {
            Wait(1.0, c_timeAI);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:2706

    TriggerExecute(gt_HellionAttack, true, false);
    TriggerQueueEnter();
    if ((libNtve_gf_UnitGroupIsDead(gv_hellions) == true)) {
        return true;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:3190

    while (true) {
        Wait(1.0, c_timeGame);
        if ((libNtve_gf_UnitGroupIsDead(lv_minerGroup) == true)) {
            return true;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:3218

    }
    while (true) {
        if ((libNtve_gf_UnitGroupIsDead(lv_minerGroup) == true)) {
            return true;
        }

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

    TriggerEnable(gt_RebelMarines01Dead, true);
    TriggerExecute(gt_TransmissionRebelMarines01MaydayQ, true, true);
    if ((gv_rebelMarinesFound01 == false) && (libNtve_gf_UnitGroupIsDead(gv_rebelMarines01) == false)) {
        MinimapPing(PlayerGroupSingle(gv_pLAYER01_USER), RegionGetCenter(RegionFromId(72)), 6.0, Color(100.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/DC769176"), null, RegionGetCenter(RegionFromId(72)));

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

    TriggerEnable(gt_RebelMarines02Dead, true);
    TriggerExecute(gt_TransmissionRebelMarines02MaydayQ, true, true);
    if ((gv_rebelMarinesFound02 == false) && (libNtve_gf_UnitGroupIsDead(gv_rebelMarines02) == false)) {
        MinimapPing(PlayerGroupSingle(gv_pLAYER01_USER), RegionGetCenter(RegionFromId(3)), 6.0, Color(100.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/14F8338E"), null, RegionGetCenter(RegionFromId(3)));

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

    TriggerEnable(gt_RebelMarines03Dead, true);
    TriggerExecute(gt_TransmissionRebelMarines03MaydayQ, true, true);
    if ((gv_rebelMarinesFound03 == false) && (libNtve_gf_UnitGroupIsDead(gv_rebelMarines03) == false)) {
        MinimapPing(PlayerGroupSingle(gv_pLAYER01_USER), RegionGetCenter(RegionFromId(71)), 6.0, Color(100.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/CAB93CB5"), null, RegionGetCenter(RegionFromId(71)));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:3304

    MinimapPing(PlayerGroupAll(), RegionGetCenter(RegionFromId(18)), 2.0, Color(0.00, 100.00, 0.00));
    Wait(2.0, c_timeReal);
    if ((libNtve_gf_UnitGroupIsDead(gv_toshReapers) == false)) {
        SoundPlay(SoundLink("Reaper_What", 1), PlayerGroupAll(), 100.0, 0.0);
        SoundWait(SoundLastPlayed(), 0.0, c_soundOffsetEnd);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:2083

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_cellBlockAJerksGroup) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:2454

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_cellBlockBJerksGroup) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:2619

    }

    if ((libNtve_gf_UnitGroupIsDead(gv_p2LZGuards) == true)) {
        TriggerEnable(TriggerGetCurrent(), false);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:4385

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup("Marine", gv_p01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:4950

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup("Marine", gv_p01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:5479

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup("Marine", gv_p01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:4474

    libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
    TriggerQueueExit();
    while (!((libNtve_gf_UnitGroupIsDead(gv__2IntroBanelings) == true))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:5972

    gf__3ForcePopEgg(UnitFromId(1416));
    gf__3ForcePopEgg(UnitFromId(516));
    while (!((libNtve_gf_UnitGroupIsDead(gv__3BullyGroup1) == true) && (UnitGroupCount(UnitGroup(null, gv_p2_ZERG, RegionFromId(33), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:6139

    gf__3ForcePopEgg(UnitFromId(105));
    gf__3ForcePopEgg(UnitFromId(66));
    while (!((libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2) == true) && (libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2MoverShooters) == true) && (UnitGroupCount(UnitGroup(null, gv_p2_ZERG, RegionFromId(83), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:6139

    gf__3ForcePopEgg(UnitFromId(105));
    gf__3ForcePopEgg(UnitFromId(66));
    while (!((libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2) == true) && (libNtve_gf_UnitGroupIsDead(gv__3BullyGroup2MoverShooters) == true) && (UnitGroupCount(UnitGroup(null, gv_p2_ZERG, RegionFromId(83), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2mapMapScript.galaxy:2188

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_overseerHydralisks) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:3686

        Wait(0.1, c_timeGame);
        lv_mitoscarabHatches = UnitGroup("MitosaurusC", gv_pLAYER_06_HOSTILE, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((libNtve_gf_UnitGroupIsDead(lv_mitoscarabHatches) == false)) {
            break;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:417

    // Implementation
    while (true) {
        if (((gv_gameOver == true) || (libNtve_gf_UnitGroupIsDead(lp_gROUP) == true))) {
            PingDestroy(lp_pING);
            return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:527

    if (autoA6A574FE_val == RegionFromId(9)) {
        UnitGroupIssueOrder(lv_attackGroup, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(580)), c_orderQueueReplace);
        while ((libNtve_gf_UnitGroupIsDead(lv_attackGroup) == false)) {
            while (!(((libNtve_gf_UnitGroupIsDead(lv_attackGroup) == true) || (libNtve_gf_UnitGroupIsDead(gv_lurkerPlayerUnits) == true)))) {
                Wait(1.0, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:528

        UnitGroupIssueOrder(lv_attackGroup, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(580)), c_orderQueueReplace);
        while ((libNtve_gf_UnitGroupIsDead(lv_attackGroup) == false)) {
            while (!(((libNtve_gf_UnitGroupIsDead(lv_attackGroup) == true) || (libNtve_gf_UnitGroupIsDead(gv_lurkerPlayerUnits) == true)))) {
                Wait(1.0, c_timeGame);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:528

        UnitGroupIssueOrder(lv_attackGroup, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(580)), c_orderQueueReplace);
        while ((libNtve_gf_UnitGroupIsDead(lv_attackGroup) == false)) {
            while (!(((libNtve_gf_UnitGroupIsDead(lv_attackGroup) == true) || (libNtve_gf_UnitGroupIsDead(gv_lurkerPlayerUnits) == true)))) {
                Wait(1.0, c_timeGame);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:532

            }
            UnitGroupIssueOrder(lv_attackGroup, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(lp_waveArea)), c_orderQueueReplace);
            while (!(((libNtve_gf_UnitGroupIsDead(lv_attackGroup) == true) || (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 1), c_unitCountAlive) > 0)))) {
                Wait(1.0, c_timeGame);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:1672

    }
    UnitGroupLoopEnd();
    while (!(((UnitOrderCount(UnitGroupUnit(lv_retreatUnitGroup, 1)) == 0) || (libNtve_gf_UnitGroupIsDead(lv_retreatUnitGroup) == true)))) {
        Wait(1.0, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:2944

    Wait(1.0, c_timeGame);
    gf_LurkerSendAttackWave(RegionFromId(11));
    while (!((libNtve_gf_UnitGroupIsDead(gv_lurkerAttackGroupCurrent) == true))) {
        Wait(1.0, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:3012

    Wait(1.0, c_timeGame);
    gf_LurkerSendAttackWave(RegionFromId(12));
    while (!((libNtve_gf_UnitGroupIsDead(gv_lurkerAttackGroupCurrent) == true))) {
        Wait(1.0, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:375


    // Implementation
    if ((libNtve_gf_UnitGroupIsDead(gv_broodLordsGroup) == true)) {
        lv_centerPoint = CameraGetTarget(gv_pLAYER_01_USER);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1105

    }

    if ((libNtve_gf_UnitGroupIsDead(gv_feralBroodLordsGroup) == true)) {
        gv_backupSuppressed = true;
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:2491

        }

        if (!((((libNtve_gf_UnitGroupIsDead(gv_viperGroup) == true) && (gv_backupPoint != PointFromId(1276))) || ((libNtve_gf_UnitGroupIsDead(gv_aberrationGroup) == true) && (TriggerIsEnabled(gt_TankIntro) == false))))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:2491

        }

        if (!((((libNtve_gf_UnitGroupIsDead(gv_viperGroup) == true) && (gv_backupPoint != PointFromId(1276))) || ((libNtve_gf_UnitGroupIsDead(gv_aberrationGroup) == true) && (TriggerIsEnabled(gt_TankIntro) == false))))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:2618

        }

        if (!((libNtve_gf_UnitGroupIsDead(gv_viperGroup) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:3304

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitGroupIsDead(gv_broodLordsGroup) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:3308

        }

        if (!((libNtve_gf_UnitGroupIsDead(gv_mutaliskGroup) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:729

        }

        if (!((((gv_corpserActive == true) && (libNtve_gf_UnitGroupIsDead(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(5), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true)) || ((gv_vileActive == true) && (libNtve_gf_UnitGroupIsDead(gv_vilePlayerUnits) == true))))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:729

        }

        if (!((((gv_corpserActive == true) && (libNtve_gf_UnitGroupIsDead(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(5), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == true)) || ((gv_vileActive == true) && (libNtve_gf_UnitGroupIsDead(gv_vilePlayerUnits) == true))))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:333


    // Implementation
    while ((libNtve_gf_UnitGroupIsDead(lp_unitGroup) == false)) {
        PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup));
        Wait(0.1, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:1911

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 0)) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:2025

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 0)) == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:2296

        }

        if (!((libNtve_gf_UnitGroupIsDead(UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 1)) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:2424

        }

        if (!(((libNtve_gf_UnitGroupIsDead(UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 1)) == true) || ((gv_backupPoint == PointFromId(605)) && (UnitIsAlive(gv_hatchery1) == false)) || ((gv_backupPoint == PointFromId(606)) && (UnitIsAlive(gv_hatchery2) == false))))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:1036

    UnitGroupIssueOrder(lv_guards, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(34)), c_orderQueueAddToEnd);
    auto42541054_at = 0;
    while (!((libNtve_gf_UnitGroupIsDead(lv_guards) == true)) && auto42541054_at <= 5.0) {
        Wait(0.25, c_timeGame);
        auto42541054_at = auto42541054_at + 0.25;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:1420

    UnitGroupLoopEnd();
    UnitGroupIssueOrder(lv_guards, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(RegionFromId(19))), c_orderQueueReplace);
    while (!((libNtve_gf_UnitGroupIsDead(lv_guards) == true))) {
        Wait(0.25, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:1474

    UnitGroupLoopEnd();
    UnitGroupIssueOrder(lv_guards, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(RegionFromId(26))), c_orderQueueReplace);
    while (!((libNtve_gf_UnitGroupIsDead(lv_guards) == true))) {
        Wait(0.25, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:1489

    }
    TriggerExecute(gt_TransmissionItBurnsQ, true, false);
    while (!((libNtve_gf_UnitGroupIsDead(lv_guards) == true))) {
        Wait(0.25, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:2102

    gf_Fog(PointFromId(321), 1.5);
    gf_Fog(PointFromId(280), 2.0);
    while (!((libNtve_gf_UnitGroupIsDead(gv_bridgeGuards) == true))) {
        Wait(0.25, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/MapScript.galaxy:1326

        }

        if (!((libNtve_gf_UnitGroupIsDead(gv_swarmlingMassWave) == false))) {
            return false;
        }

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

    autoC2102447_var = 1;
    for ( ; autoC2102447_var <= autoC2102447_ae; autoC2102447_var += 1 ) {
        if ((UnitIsAlive(gv_scourgeNestUnit[autoC2102447_var]) == true) && (libNtve_gf_UnitGroupIsDead(libNtve_gf_UnitsInRegionWithAllianceToPlayerMatchingCondition("CreepTumor", "CreepTumorBurrowed", "CreepTumorUsed", gv_pLAYER_01_USER, -1, RegionCircle(gv_scourgeNest_Point[autoC2102447_var], gv_c_ScourgeActivationRange), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) == false)) {
            gf_ShowHelperAtNest(autoC2102447_var);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:630


    // Implementation
    if ((libNtve_gf_UnitGroupIsDead(lp_army) == true)) {
        return null;
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:636

    lv_center = UnitGroupCenterOfGroup(lp_army);
    lv_armyLeftGroup = UnitGroupCopy(lp_army);
    while ((libNtve_gf_UnitGroupIsDead(lv_armyLeftGroup) == false)) {
        lv_startingUnit = UnitGroupUnit(lv_armyLeftGroup, 1);
        lv_currentCluster = gf_ArmyClusterFromUnit(lv_armyLeftGroup, lv_startingUnit);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:675

    lv_armyLeftGroup = UnitGroupCopy(lp_army);
    UnitGroupRemove(lv_armyLeftGroup, lp_originUnit);
    while ((libNtve_gf_UnitGroupIsDead(lv_newGroup) == false)) {
        lv_newNewGroup = UnitGroupEmpty();
        auto73F8972F_g = lv_newGroup;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:3198


    TriggerEnable(TriggerGetCurrent(), false);
    while (!((libNtve_gf_UnitGroupIsDead(gv_frozenExpansionProtoss) == true))) {
        Wait(1.0, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:683


    TriggerExecute(gt_TransmissionCleanserTeamEnrouteQ, true, false);
    if ((libNtve_gf_UnitGroupIsDead(AIWaveGetUnits(gv_cleanserWaves[lp_cleanserTeam])) == true) && (gv_transFirebatRolling != c_invalidTransmissionId)) {
        TransmissionClear(gv_transFirebatRolling);
        gv_transFirebatRolling = c_invalidTransmissionId;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:2637

            UnitGroupRemove(lv_infestedGroup, lv_u);
        }
        if ((libNtve_gf_UnitGroupIsDead(lv_infestedGroup) == true)) {
            return true;
        }