# Unit Type Is Selected

GrammarunitType is selected by player player
FlagsFunction

Returns true if at least one unit of the specified unit type is selected by the player.

# Arguments

  • string<gamelink::Unit> — UnitType
  • int — Player

Returns — bool

bool libNtve_gf_UnitTypeIsSelected(
	string lp_unitType,
	int lp_player,
);

Category: Selection / Unit Selection

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2441

    while (true) {
        if ((gv_gameOver == false) && (gv_hatcheryDroneBasicButtonClicked == false)) {
            while (!(((gv_gameOver == true) || (libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)))) {
                Wait(1.0, c_timeGame);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2518

    while (true) {
        if ((gv_gameOver == false) && (gv_hatcheryButtonClicked == false)) {
            while (!(((gv_gameOver == true) || (libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)))) {
                Wait(1.0, c_timeGame);
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2528

            libSwaC_gf_SendTransmissionCampaign(null, "zMission_Lab01|Line00008", c_transmissionDurationAdd, 0.0, false, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
            gv_adjutantDroneBuildHatch = TransmissionLastSent();
            if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true) && (libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)) {
                libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialcommandcardhighlight.dds", c_triggerBlendModeAdd, 503, 348, c_anchorBottomRight, 5, -2);
                libNtve_gf_PulseScreenImage(1, 1.75, 100.0, 0.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3478

    }

    if (((UnitIsSelected(gv_firstHatchery, gv_pLAYER_01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
        gv_hatcherySelected = true;
        if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3480

    if (((UnitIsSelected(gv_firstHatchery, gv_pLAYER_01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
        gv_hatcherySelected = true;
        if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true)) {
            gv_overlordLarvaSelectPressed = true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3680

        if ((gv_overlordMorphUsed == false)) {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("LarvaTrain", 2), true);
            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3682

            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {
                    gf_CreateOverlordHatcheryHelper();
                }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3775

        }

        if (!((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:4312


    if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true)) {
        if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)) {
            TriggerExecute(gt_SpawningPoolDroneSelected, false, false);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:4321

    }
    else {
        if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)) {
            TriggerExecute(gt_SpawningPoolDroneSelected, false, false);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:2125

    UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 3), true);
    TriggerEnable(gt_SpawningPoolDroneIssuedOrder, true);
    if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == false)) {
        gf_CreateSpawningPoolDroneHelper(false);
        UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/2BE5D96F"), null, PointFromId(526));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:2158

        }

        if (!((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:2352

        if ((gv_spawningPoolBuildingStarted == false)) {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 3), true);
            if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == false)) {
                if (((gv_spawningPool_Drone == null) || (gf_UnitHasOrder(gv_spawningPool_Drone, AbilityCommand("ZergBuild", 3)) == false))) {
                    gf_CreateSpawningPoolDroneHelper(true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:2611

        else {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("LarvaTrain", 1), true);
            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:2613

            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {
                    gf_CreateZerglingHatcheryHelper();
                }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:2685

    }
    if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
        lv_anyDronesSelected = libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER);
        if ((lv_anyDronesSelected == false)) {
            UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/52032043"), null, PointFromId(526));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:2764

        }

        if (!((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:3009

        if ((gv_spine_MorphStarted == false)) {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 14), true);
            if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == false)) {
                if (((gv_spine_Drone == null) || (gf_UnitHasOrder(gv_spine_Drone, AbilityCommand("ZergBuild", 14)) == false))) {
                    gf_CreateSpineCrawlerDroneHelper(true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:2441

    while (true) {
        if ((gv_gameOver == false) && (gv_hatcheryDroneBasicButtonClicked == false)) {
            while (!(((gv_gameOver == true) || (libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)))) {
                Wait(1.0, c_timeGame);
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:2518

    while (true) {
        if ((gv_gameOver == false) && (gv_hatcheryButtonClicked == false)) {
            while (!(((gv_gameOver == true) || (libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)))) {
                Wait(1.0, c_timeGame);
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:2528

            libSwaC_gf_SendTransmissionCampaign(null, "zMission_Lab01|Line00008", c_transmissionDurationAdd, 0.0, false, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
            gv_adjutantDroneBuildHatch = TransmissionLastSent();
            if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true) && (libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)) {
                libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialcommandcardhighlight.dds", c_triggerBlendModeAdd, 503, 348, c_anchorBottomRight, 5, -2);
                libNtve_gf_PulseScreenImage(1, 1.75, 100.0, 0.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:3478

    }

    if (((UnitIsSelected(gv_firstHatchery, gv_pLAYER_01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
        gv_hatcherySelected = true;
        if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:3480

    if (((UnitIsSelected(gv_firstHatchery, gv_pLAYER_01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
        gv_hatcherySelected = true;
        if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true)) {
            gv_overlordLarvaSelectPressed = true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:3680

        if ((gv_overlordMorphUsed == false)) {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("LarvaTrain", 2), true);
            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:3682

            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {
                    gf_CreateOverlordHatcheryHelper();
                }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:3775

        }

        if (!((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:4312


    if ((libHots_gf_DifficultyValueSwarmBoolean(true, true, false) == true)) {
        if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)) {
            TriggerExecute(gt_SpawningPoolDroneSelected, false, false);
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:4321

    }
    else {
        if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true)) {
            TriggerExecute(gt_SpawningPoolDroneSelected, false, false);
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:2125

    UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 3), true);
    TriggerEnable(gt_SpawningPoolDroneIssuedOrder, true);
    if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == false)) {
        gf_CreateSpawningPoolDroneHelper(false);
        UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/2BE5D96F"), null, PointFromId(526));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:2158

        }

        if (!((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:2352

        if ((gv_spawningPoolBuildingStarted == false)) {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 3), true);
            if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == false)) {
                if (((gv_spawningPool_Drone == null) || (gf_UnitHasOrder(gv_spawningPool_Drone, AbilityCommand("ZergBuild", 3)) == false))) {
                    gf_CreateSpawningPoolDroneHelper(true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:2611

        else {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("LarvaTrain", 1), true);
            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:2613

            if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == false)) {
                libSwaC_gf_TurnSelectLarvaButtonHighlightOnOff(true);
                if ((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_pLAYER_01_USER) == false)) {
                    gf_CreateZerglingHatcheryHelper();
                }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:2685

    }
    if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
        lv_anyDronesSelected = libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER);
        if ((lv_anyDronesSelected == false)) {
            UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/52032043"), null, PointFromId(526));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:2764

        }

        if (!((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == true))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:3009

        if ((gv_spine_MorphStarted == false)) {
            UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("ZergBuild", 14), true);
            if ((libNtve_gf_UnitTypeIsSelected("Drone", gv_pLAYER_01_USER) == false)) {
                if (((gv_spine_Drone == null) || (gf_UnitHasOrder(gv_spine_Drone, AbilityCommand("ZergBuild", 14)) == false))) {
                    gf_CreateSpineCrawlerDroneHelper(true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3535

        }
        UnitGroupLoopEnd();
        if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
            gf_ClearAllTutorialReticles();
            gf_SetOffscreenUnit(null);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3535

        }
        UnitGroupLoopEnd();
        if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
            gf_ClearAllTutorialReticles();
            gf_SetOffscreenUnit(null);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:6934

    }

    if ((libNtve_gf_UnitTypeIsSelected("SCV", gv_p01_USER) == true)) {
        if ((gv_terranMakeSupplySCVSelected == false)) {
            gv_terranMakeSupplySCVSelected = true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:8071

    }

    if ((libNtve_gf_UnitTypeIsSelected("SCV", gv_p01_USER) == true)) {
        if ((gv_terranMakeBarracksSCVSelected == false)) {
            gv_terranMakeBarracksSCVSelected = true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:8591

    }

    if ((libNtve_gf_UnitTypeIsSelected("Barracks", gv_p01_USER) == true)) {
        gf_DestroyTutorialTextTag();
        gf_ClearAllTutorialReticles();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:10153

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:10153

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:10165

        gf_SetOffscreenUnit(gv_zergHatchery);
    }
    if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true)) {
        if ((gv_zergMakeOverlordLarvaSelected == false)) {
            gv_zergMakeOverlordLarvaSelected = true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:10630

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:10630

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:2269

    }

    if ((libNtve_gf_UnitTypeIsSelected("Probe", gv_pLAYER_01_USER) == true)) {
        auto83B17D7D_g = UnitGroup("Probe", gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
        auto83B17D7D_u = UnitGroupCount(auto83B17D7D_g, c_unitCountAll);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:2950

    }

    if ((libNtve_gf_UnitTypeIsSelected("Probe", gv_pLAYER_01_USER) == true)) {
        autoE76E89A0_g = UnitGroup("Probe", gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
        autoE76E89A0_u = UnitGroupCount(autoE76E89A0_g, c_unitCountAll);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:3535

        }
        UnitGroupLoopEnd();
        if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
            gf_ClearAllTutorialReticles();
            gf_SetOffscreenUnit(null);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:3535

        }
        UnitGroupLoopEnd();
        if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
            gf_ClearAllTutorialReticles();
            gf_SetOffscreenUnit(null);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:6934

    }

    if ((libNtve_gf_UnitTypeIsSelected("SCV", gv_p01_USER) == true)) {
        if ((gv_terranMakeSupplySCVSelected == false)) {
            gv_terranMakeSupplySCVSelected = true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:8071

    }

    if ((libNtve_gf_UnitTypeIsSelected("SCV", gv_p01_USER) == true)) {
        if ((gv_terranMakeBarracksSCVSelected == false)) {
            gv_terranMakeBarracksSCVSelected = true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:8591

    }

    if ((libNtve_gf_UnitTypeIsSelected("Barracks", gv_p01_USER) == true)) {
        gf_DestroyTutorialTextTag();
        gf_ClearAllTutorialReticles();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:10153

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:10153

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:10165

        gf_SetOffscreenUnit(gv_zergHatchery);
    }
    if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true)) {
        if ((gv_zergMakeOverlordLarvaSelected == false)) {
            gv_zergMakeOverlordLarvaSelected = true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:10630

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:10630

    }

    if (((libNtve_gf_UnitTypeIsSelected("Hatchery", gv_p01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_p01_USER) == true))) {
        UnitSetState(gv_zergHatchery, c_unitStateStatusBar, true);
        gf_DestroyTutorialTextTag();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2mapMapScript.galaxy:2269

    }

    if ((libNtve_gf_UnitTypeIsSelected("Probe", gv_pLAYER_01_USER) == true)) {
        auto83B17D7D_g = UnitGroup("Probe", gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
        auto83B17D7D_u = UnitGroupCount(auto83B17D7D_g, c_unitCountAll);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2mapMapScript.galaxy:2950

    }

    if ((libNtve_gf_UnitTypeIsSelected("Probe", gv_pLAYER_01_USER) == true)) {
        autoE76E89A0_g = UnitGroup("Probe", gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
        autoE76E89A0_u = UnitGroupCount(autoE76E89A0_g, c_unitCountAll);