# Unit In Unit Group

Grammaru is in g
FlagsNative | Function

Returns true if the specified unit is part of the specified unit group.

# Arguments

  • unitgroup — Unit Group
  • unit — Unit

Returns — bool

native bool UnitGroupHasUnit(
	unitgroup inGroup,
	unit inUnit,
);

Category: Unit Group / Groups

# Examples

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_convoyGuards, EventUnit()) == false))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_convoyGuards, EventUnit()) == true))) {
            return false;
        }

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

        autoC7919796_n = lv_packs;
        for (autoC7919796_i = 1; autoC7919796_i <= autoC7919796_n; autoC7919796_i += 1) {
            if ((UnitIsAlive(lv_nydusWorm) == true) && (UnitGroupHasUnit(gv_activeNydusWorms, lv_nydusWorm) == true)) {
                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_nydusWorm), c_animNameDefault, "Spell", 0, c_animTimeDefault);
                libNtve_gf_CreateUnitsAtPoint2(lv_packSize, lv_type, 0, gv_p2_ZERG_ORANGE_NW, UnitGetPosition(lv_nydusWorm));

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

        }

        if (!((UnitGroupHasUnit(gv_colonistsOnTheMove, EventUnit()) == true))) {
            return false;
        }

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

    UnitSetCustomValue(EventUnit(), 0, (UnitGetCustomValue(EventUnit(), 0) + 1.0));
    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
        if ((UnitGroupHasUnit(gv_infestorAggressionInhibitor, EventUnit()) == false)) {
            UnitGroupAdd(gv_infestorAggressionInhibitor, EventUnit());
            UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll);

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

        }

        if (!((UnitGroupHasUnit(gv_infestedStructureGroup, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_terrorFleetGroup, EventUnit()) == true))) {
            return false;
        }

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

        lv_indexUnit = UnitGroupUnitFromEnd(autoC6F67F0C_g, autoC6F67F0C_u);
        if (lv_indexUnit == null) { break; }
        if ((UnitGroupHasUnit(gv_scientistsGroup, lv_indexUnit) == true) && (UnitGetCustomValue(lv_indexUnit, 0) == 0.0)) {
            lv_scientist = lv_indexUnit;
            UnitSetCustomValue(lv_scientist, 0, 1.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:5186

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_introUnitCargoStart, EventUnitCargo()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_sCVReinforcement, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_sCVReinforcement, EventUnitCargo()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_mineGuardGroup, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_mineGuardGroup, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2515

    // Implementation
    if ((lp_addRemove == true)) {
        if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == true)) {
            return ;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2535

        }

        if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == false)) {
            return ;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9567

    gv_hotspots_FlashingTextTags[gv_hotspots_FlashingTextTagCount] = TextTagLastCreated();
    UnitSetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData), IntToFixed(gv_hotspots_FlashingTextTagCount));
    if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == false)) {
        gf_HideFlashingTextTag(false, lp_unit);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9584

    // Implementation
    lv_hotspot = lp_unit;
    if ((UnitGroupHasUnit(gv_labArtifacts, lp_unit) == true)) {
        lv_hotspot = gv_labArtifactField;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9867


    // Implementation
    if ((UnitGroupHasUnit(gv_labArtifacts, lp_unit) == true) && (lp_unit != gv_labArtifactField)) {
        return ;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9902

    else {
        gv_hotspots_FlashingPaused[lv_index] = false;
        if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == true)) {
            gf_HideFlashingTextTag(true, lp_unit);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19146

    UnitGroupLoopBegin(gv_visibleUnits);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitGroupHasUnit(gv_clickables, UnitGroupLoopCurrent()) == false)) {
            gf_RemoveVisibleUnit(false, UnitGroupLoopCurrent());
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:21789


    gv_hotspotClicked = EventUnit();
    if ((UnitGroupHasUnit(gv_labArtifacts, gf_HotspotClicked()) == true)) {
        gv_hotspotClicked = gv_labArtifactField;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:21861

        TriggerExecute(gt_CantinaMercClicked, true, false);
    }
    else if ((UnitGroupHasUnit(gv_cantinaTrophiesClickables, gf_HotspotClicked()) == true)) {
        TriggerExecute(gt_CantinaTrophiesItemClicked, true, false);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:21879

        TriggerExecute(gt_CharArtifactClicked, true, false);
    }
    else if ((UnitGroupHasUnit(gv_labArtifacts, gf_HotspotClicked()) == true)) {
        TriggerExecute(gt_LabArtifactClicked, true, false);
    }

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

        }

        if (!((UnitGroupHasUnit(gv_dirtyBanelingCrew, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1357

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_harvestingSpeedBumpNWBullies, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1400

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_harvestingSpeedBumpCentralBullies, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1547

        }

        if (!((UnitGroupHasUnit(gv_nEDefendersGroup, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2653

        }

        if (!((UnitGroupHasUnit(gv_probeHarvesters, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_cellBlockAJerksGroup, EventUnit()) == true))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_p1MiTuGuards, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_p1MiTuGuards, EventUnitDamageSourceUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_p2SearchCrew, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_p2LZGuards, EventUnit()) == true))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_p3SouthGuards, EventUnit()) == true))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_p3NorthGuards, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(UnitGroup(null, gv_pLAYER02_TOSH, RegionFromId(88), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), EventUnit()) == true))) {
            return false;
        }

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

    TriggerExecute(gt_Construction02Q, true, false);
    gv_con02_AllowMoreLines01 = true;
    if ((UnitGroupHasUnit(UnitGroupSelected(gv_p01_USER), gv_con_SCV) == false)) {
        UnitClearSelection(gv_p01_USER);
        UnitSelect(gv_con_SCV, gv_p01_USER, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1081

        }

        if (!((UnitGroupHasUnit(gv_outsideProtossBaseDefenders, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2063


    SoundPlayAtPoint(SoundLink("Thor_Movement", -1), PlayerGroupAll(), UnitGetPosition(EventUnit()), 0.0, 100.0, 0.0);
    if ((UnitGroupHasUnit(gv_artifactGuardiansSouth, EventUnit()) == true)) {
        gv_statuesDestoyed += 1;
        ObjectiveSetName(gv_objective_DestroytheStatues, (StringExternal("Param/Value/98F1F2DC") + IntToText(gv_statuesDestoyed) + StringExternal("Param/Value/4BD9CBE6")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1292

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(UnitGroup(null, gv_p6_PROTOSSAir, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:2598

        }

        if (!((UnitGroupHasUnit(gv_moebiusTargets, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:3902

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gROUP_ZERG_SITE1_SHARKS, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:3935

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gROUP_ZERG_SITE1_SHARKS, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:3969

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gROUP_ZERG_SITE1_SHARKS, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:4003

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gROUP_ZERG_SITE1_SHARKS, EventUnit()) == true))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gROUPPrisons, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2120

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop01, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2153

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop02, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2186

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop03, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2219

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop04, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2252

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop05, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2285

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop06, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2318

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop07, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2351

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop08, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2384

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop09, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2417

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_gankGroupDrop10, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__1TeachSnipeBullies, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__1TeachSnipeAgainBullies, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__1TeachNadesBullies, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__1TeachNadesAgainBullies, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__1TeachBettyBullies, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__1ZergGuards, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__2StoryTellingBullies, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__2ZombieRaid1, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__2ZombieRaid2, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv__2AmbushBullies, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:5447

        }

        if (!((UnitGroupHasUnit(gv_initialArtifactAttackers, EventUnit()) == true))) {
            return false;
        }

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

        autoFAA9E78D_var = UnitGroupUnitFromEnd(autoFAA9E78D_g, autoFAA9E78D_u);
        if (autoFAA9E78D_var == null) { break; }
        if ((UnitGroupHasUnit(gv_nydusSpawnRumble, autoFAA9E78D_var) == true)) {
            gf_IssuePanicOrder(autoFAA9E78D_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1628

        }

        if (!((UnitGroupHasUnit(gv_prisonGroup, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1682

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_prisonGroup, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1655

        }

        if (!((UnitGroupHasUnit(gv_overlordWanderGroup, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:1779

    }

    if ((UnitGroupHasUnit(gv_playerUnitsRound1, EventUnit()) == true)) {
        gv_lostUnitsRound1 += 1;
        BoardItemSetText(gv_board, 1, 1, (StringExternal("Param/Value/83E7D617") + StringExternal("Param/Value/73F9CA65") + IntToText(gv_lostUnitsRound1) + StringExternal("Param/Value/EDA2C9FB")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:1785

    else {
    }
    if ((UnitGroupHasUnit(gv_playerUnitsRound2, EventUnit()) == true)) {
        gv_lostUnitsRound2 += 1;
        BoardItemSetText(gv_board, 1, 2, (StringExternal("Param/Value/58E4B978") + StringExternal("Param/Value/74880600") + IntToText(gv_lostUnitsRound2) + StringExternal("Param/Value/24E864A3")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:1791

    else {
    }
    if ((UnitGroupHasUnit(gv_playerUnitsRound3, EventUnit()) == true)) {
        gv_lostUnitsRound3 += 1;
        BoardItemSetText(gv_board, 1, 3, (StringExternal("Param/Value/EB7D88CF") + StringExternal("Param/Value/D5729D03") + IntToText(gv_lostUnitsRound3) + StringExternal("Param/Value/2BCD47DB")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:1598

    }

    if ((UnitGroupHasUnit(gv_playerUnitsRound1, EventUnit()) == true)) {
        gv_lostUnitsRound1 += 1;
        BoardItemSetText(gv_board, 1, 1, (StringExternal("Param/Value/8563874F") + StringExternal("Param/Value/99D85C01") + IntToText(gv_lostUnitsRound1) + StringExternal("Param/Value/6E8B0AB6")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:1604

    else {
    }
    if ((UnitGroupHasUnit(gv_playerUnitsRound2, EventUnit()) == true)) {
        gv_lostUnitsRound2 += 1;
        BoardItemSetText(gv_board, 1, 2, (StringExternal("Param/Value/1D3D8256") + StringExternal("Param/Value/E8991D03") + IntToText(gv_lostUnitsRound2) + StringExternal("Param/Value/BD1D0308")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:1610

    else {
    }
    if ((UnitGroupHasUnit(gv_playerUnitsRound3, EventUnit()) == true)) {
        gv_lostUnitsRound3 += 1;
        BoardItemSetText(gv_board, 1, 3, (StringExternal("Param/Value/39F2F53F") + StringExternal("Param/Value/F2A236DC") + IntToText(gv_lostUnitsRound3) + StringExternal("Param/Value/F46A04D7")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:1685

    }

    if ((UnitGroupHasUnit(gv_playerUnitsRound1, EventUnit()) == true)) {
        gv_lostUnitsRound1 += 1;
        BoardItemSetText(gv_board, 1, 1, (StringExternal("Param/Value/443501B7") + StringExternal("Param/Value/B3BE23B3") + IntToText(gv_lostUnitsRound1) + StringExternal("Param/Value/E411807C")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:1691

    else {
    }
    if ((UnitGroupHasUnit(gv_playerUnitsRound2, EventUnit()) == true)) {
        gv_lostUnitsRound2 += 1;
        BoardItemSetText(gv_board, 1, 2, (StringExternal("Param/Value/72C1B32D") + StringExternal("Param/Value/55D7AD45") + IntToText(gv_lostUnitsRound2) + StringExternal("Param/Value/98E13513")));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:1697

    else {
    }
    if ((UnitGroupHasUnit(gv_playerUnitsRound3, EventUnit()) == true)) {
        gv_lostUnitsRound3 += 1;
        BoardItemSetText(gv_board, 1, 3, (StringExternal("Param/Value/FBD886C5") + StringExternal("Param/Value/BA08D3D3") + IntToText(gv_lostUnitsRound3) + StringExternal("Param/Value/552C8C13")));

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_convoyGuards, EventUnit()) == false))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_convoyGuards, EventUnit()) == true))) {
            return false;
        }

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

        autoC7919796_n = lv_packs;
        for (autoC7919796_i = 1; autoC7919796_i <= autoC7919796_n; autoC7919796_i += 1) {
            if ((UnitIsAlive(lv_nydusWorm) == true) && (UnitGroupHasUnit(gv_activeNydusWorms, lv_nydusWorm) == true)) {
                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_nydusWorm), c_animNameDefault, "Spell", 0, c_animTimeDefault);
                libNtve_gf_CreateUnitsAtPoint2(lv_packSize, lv_type, 0, gv_p2_ZERG_ORANGE_NW, UnitGetPosition(lv_nydusWorm));

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

        }

        if (!((UnitGroupHasUnit(gv_colonistsOnTheMove, EventUnit()) == true))) {
            return false;
        }

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

    UnitSetCustomValue(EventUnit(), 0, (UnitGetCustomValue(EventUnit(), 0) + 1.0));
    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
        if ((UnitGroupHasUnit(gv_infestorAggressionInhibitor, EventUnit()) == false)) {
            UnitGroupAdd(gv_infestorAggressionInhibitor, EventUnit());
            UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll);

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

        }

        if (!((UnitGroupHasUnit(gv_infestedStructureGroup, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_terrorFleetGroup, EventUnit()) == true))) {
            return false;
        }

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

        lv_indexUnit = UnitGroupUnitFromEnd(autoC6F67F0C_g, autoC6F67F0C_u);
        if (lv_indexUnit == null) { break; }
        if ((UnitGroupHasUnit(gv_scientistsGroup, lv_indexUnit) == true) && (UnitGetCustomValue(lv_indexUnit, 0) == 0.0)) {
            lv_scientist = lv_indexUnit;
            UnitSetCustomValue(lv_scientist, 0, 1.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:5186

    // Conditions
    if (testConds) {
        if (!((UnitGroupHasUnit(gv_introUnitCargoStart, EventUnitCargo()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_sCVReinforcement, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_sCVReinforcement, EventUnitCargo()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_mineGuardGroup, EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((UnitGroupHasUnit(gv_mineGuardGroup, EventUnit()) == true))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:2515

    // Implementation
    if ((lp_addRemove == true)) {
        if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == true)) {
            return ;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:2535

        }

        if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == false)) {
            return ;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:9567

    gv_hotspots_FlashingTextTags[gv_hotspots_FlashingTextTagCount] = TextTagLastCreated();
    UnitSetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData), IntToFixed(gv_hotspots_FlashingTextTagCount));
    if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == false)) {
        gf_HideFlashingTextTag(false, lp_unit);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:9584

    // Implementation
    lv_hotspot = lp_unit;
    if ((UnitGroupHasUnit(gv_labArtifacts, lp_unit) == true)) {
        lv_hotspot = gv_labArtifactField;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:9867


    // Implementation
    if ((UnitGroupHasUnit(gv_labArtifacts, lp_unit) == true) && (lp_unit != gv_labArtifactField)) {
        return ;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:9902

    else {
        gv_hotspots_FlashingPaused[lv_index] = false;
        if ((UnitGroupHasUnit(gv_visibleUnits, lp_unit) == true)) {
            gf_HideFlashingTextTag(true, lp_unit);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19146

    UnitGroupLoopBegin(gv_visibleUnits);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitGroupHasUnit(gv_clickables, UnitGroupLoopCurrent()) == false)) {
            gf_RemoveVisibleUnit(false, UnitGroupLoopCurrent());
        }