# Unit Type Of Unit

Grammar — Unit type of u
FlagsNative | Function

Returns the unit type for the specified unit.

# Arguments

  • unit — Unit

Returns — string<gamelink::Unit>

native string UnitGetType(unit inUnit);

Category: Unit / Properties

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:648

        lv_index = 1;
        for ( ; ( (auto10272E13_ai >= 0 && lv_index <= auto10272E13_ae) || (auto10272E13_ai <= 0 && lv_index >= auto10272E13_ae) ) ; lv_index += auto10272E13_ai ) {
            if ((UnitGetType(lv_pickedUnit) == gv_powerupTypeUnitTypes[lv_index])) {
                UnitRemove(lv_pickedUnit);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2734

    lv_index = 1;
    for ( ; ( (autoF95A9D70_ai >= 0 && lv_index <= autoF95A9D70_ae) || (autoF95A9D70_ai <= 0 && lv_index >= autoF95A9D70_ae) ) ; lv_index += autoF95A9D70_ai ) {
        if ((UnitGetType(lp_unit) == gv_levelWavePlaneType[(gv_levelCurrent)][lv_index])) {
            gv_levelTotalEnemy += 1;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2745

    // Implementation
    UnitCreate(lp_count, lp_type, 0, gv_p2_ENEMY, lp_pos, lp_angle);
    if (((UnitGetType(UnitLastCreated()) == "SS_LightningProjectorFaceLeft") || (UnitGetType(UnitLastCreated()) == "SS_LightningProjectorFaceRight"))) {
        gv_spawnedLightningProjector = UnitLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2745

    // Implementation
    UnitCreate(lp_count, lp_type, 0, gv_p2_ENEMY, lp_pos, lp_angle);
    if (((UnitGetType(UnitLastCreated()) == "SS_LightningProjectorFaceLeft") || (UnitGetType(UnitLastCreated()) == "SS_LightningProjectorFaceRight"))) {
        gv_spawnedLightningProjector = UnitLastCreated();
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2844


    // Implementation
    lv_type = UnitGetType(lp_mob);
    lv_modifiedPoint = libNtve_gf_PointFromXYZ(PointGetX(lp_target), PointGetY(lp_target), 15.0);
    auto6F423F11_val = lv_type;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2873


    // Implementation
    autoEA4D8E4B_val = UnitGetType(lp_mob);
    if (autoEA4D8E4B_val == "SS_SwarmGuardian") {
        gf_Level2SwarmGuardianMovement(lp_mob, UnitGetPosition(lp_mob));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4895

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "SS_Interceptor"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4978

        }

        if (!((UnitGetType(EventUnit()) == "SS_Interceptor"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:5931

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "SS_TerraTronSaw"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6648

        }
    }
    UnitSetPropertyFixed(lv_plane, c_unitPropMovementSpeed, UnitTypeGetProperty(UnitGetType(lv_plane), c_unitPropMovementSpeed));
    Wait(0.3, c_timeGame);
    lv_index = 0;

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

    // Conditions
    if (testConds) {
        if (!(((UnitGetType(EventUnitCargo()) == "Firebat") || (UnitGetType(EventUnitCargo()) == "Medic")))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!(((UnitGetType(EventUnitCargo()) == "Firebat") || (UnitGetType(EventUnitCargo()) == "Medic")))) {
            return false;
        }

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

    }

    if ((UnitGetType(EventUnitCargo()) == "Firebat")) {
        Wait(0.2, c_timeGame);
        auto256F7B23_val = gv_firebatMove;

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

    }

    if ((UnitGetType(EventUnitCargo()) == "Medic")) {
        Wait(0.2, c_timeGame);
        auto0C0AB8E0_val = gv_medicMove;

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

        }

        if (!((UnitTypeTestFlag(UnitGetType(EventUnit()), c_unitFlagMissile) == false))) {
            return false;
        }

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

        }

        if (!((UnitTypeTestFlag(UnitGetType(EventUnit()), c_unitFlagMissile) == false))) {
            return false;
        }

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

        autoEAEE2387_var = UnitGroupUnitFromEnd(autoEAEE2387_g, autoEAEE2387_u);
        if (autoEAEE2387_var == null) { break; }
        if (((UnitGetType(autoEAEE2387_var) == "SCV") || (UnitGetType(autoEAEE2387_var) == "CommandCenter") || (UnitGetType(autoEAEE2387_var) == "Refinery") || (UnitGetType(autoEAEE2387_var) == "SupplyDepot") || (UnitGetType(autoEAEE2387_var) == "SupplyDepotLowered") || (UnitGetType(autoEAEE2387_var) == "Barracks") || (UnitGetType(autoEAEE2387_var) == "BarracksTechLab") || (UnitGetType(autoEAEE2387_var) == "MercCompound"))) {
            libNtve_gf_RescueUnit(autoEAEE2387_var, gv_p1_USER, true);
        }

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

        autoEAEE2387_var = UnitGroupUnitFromEnd(autoEAEE2387_g, autoEAEE2387_u);
        if (autoEAEE2387_var == null) { break; }
        if (((UnitGetType(autoEAEE2387_var) == "SCV") || (UnitGetType(autoEAEE2387_var) == "CommandCenter") || (UnitGetType(autoEAEE2387_var) == "Refinery") || (UnitGetType(autoEAEE2387_var) == "SupplyDepot") || (UnitGetType(autoEAEE2387_var) == "SupplyDepotLowered") || (UnitGetType(autoEAEE2387_var) == "Barracks") || (UnitGetType(autoEAEE2387_var) == "BarracksTechLab") || (UnitGetType(autoEAEE2387_var) == "MercCompound"))) {
            libNtve_gf_RescueUnit(autoEAEE2387_var, gv_p1_USER, true);
        }

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

        autoEAEE2387_var = UnitGroupUnitFromEnd(autoEAEE2387_g, autoEAEE2387_u);
        if (autoEAEE2387_var == null) { break; }
        if (((UnitGetType(autoEAEE2387_var) == "SCV") || (UnitGetType(autoEAEE2387_var) == "CommandCenter") || (UnitGetType(autoEAEE2387_var) == "Refinery") || (UnitGetType(autoEAEE2387_var) == "SupplyDepot") || (UnitGetType(autoEAEE2387_var) == "SupplyDepotLowered") || (UnitGetType(autoEAEE2387_var) == "Barracks") || (UnitGetType(autoEAEE2387_var) == "BarracksTechLab") || (UnitGetType(autoEAEE2387_var) == "MercCompound"))) {
            libNtve_gf_RescueUnit(autoEAEE2387_var, gv_p1_USER, true);
        }

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

        autoEAEE2387_var = UnitGroupUnitFromEnd(autoEAEE2387_g, autoEAEE2387_u);
        if (autoEAEE2387_var == null) { break; }
        if (((UnitGetType(autoEAEE2387_var) == "SCV") || (UnitGetType(autoEAEE2387_var) == "CommandCenter") || (UnitGetType(autoEAEE2387_var) == "Refinery") || (UnitGetType(autoEAEE2387_var) == "SupplyDepot") || (UnitGetType(autoEAEE2387_var) == "SupplyDepotLowered") || (UnitGetType(autoEAEE2387_var) == "Barracks") || (UnitGetType(autoEAEE2387_var) == "BarracksTechLab") || (UnitGetType(autoEAEE2387_var) == "MercCompound"))) {
            libNtve_gf_RescueUnit(autoEAEE2387_var, gv_p1_USER, true);
        }

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

    lv_msg = (lv_msg + IntToText(MinI(PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesMade), PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesLimit))) + StringExternal("Param/Value/BEC03128"));
    lv_msg = (lv_msg + StringExternal("Param/Value/9B853FD2"));
    lv_msg = (lv_msg + UnitTypeGetName(UnitGetType(lp_u)));
    lv_msg = (lv_msg + StringExternal("Param/Value/55F22AB1"));
    lv_msg = (lv_msg + FixedToText(UnitGetPropertyFixed(lp_u, c_unitPropShields, c_unitPropCurrent), 0));

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

        auto6A6C64E5_var = UnitGroupUnitFromEnd(auto6A6C64E5_g, auto6A6C64E5_u);
        if (auto6A6C64E5_var == null) { break; }
        if ((UnitGetType(auto6A6C64E5_var) != "SporeCrawler") && (UnitGetType(auto6A6C64E5_var) != "SpineCrawler")) {
            lv_i += 1;
            gv_infestableStructure[lv_i] = auto6A6C64E5_var;

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

        auto6A6C64E5_var = UnitGroupUnitFromEnd(auto6A6C64E5_g, auto6A6C64E5_u);
        if (auto6A6C64E5_var == null) { break; }
        if ((UnitGetType(auto6A6C64E5_var) != "SporeCrawler") && (UnitGetType(auto6A6C64E5_var) != "SpineCrawler")) {
            lv_i += 1;
            gv_infestableStructure[lv_i] = auto6A6C64E5_var;

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

        auto2AA8063C_var = UnitGroupUnitFromEnd(auto2AA8063C_g, auto2AA8063C_u);
        if (auto2AA8063C_var == null) { break; }
        if ((UnitGetType(auto2AA8063C_var) != "CreepTumorBurrowed") && (UnitGetType(auto2AA8063C_var) != "SpineCrawler") && (UnitGetType(auto2AA8063C_var) != "SporeCrawler")) {
            UnitBehaviorAddPlayer(auto2AA8063C_var, "ColonyInfestation", gv_pLAYER_03_INFESTED_REFUGEES, 1);
        }

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

        auto2AA8063C_var = UnitGroupUnitFromEnd(auto2AA8063C_g, auto2AA8063C_u);
        if (auto2AA8063C_var == null) { break; }
        if ((UnitGetType(auto2AA8063C_var) != "CreepTumorBurrowed") && (UnitGetType(auto2AA8063C_var) != "SpineCrawler") && (UnitGetType(auto2AA8063C_var) != "SporeCrawler")) {
            UnitBehaviorAddPlayer(auto2AA8063C_var, "ColonyInfestation", gv_pLAYER_03_INFESTED_REFUGEES, 1);
        }

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

        auto2AA8063C_var = UnitGroupUnitFromEnd(auto2AA8063C_g, auto2AA8063C_u);
        if (auto2AA8063C_var == null) { break; }
        if ((UnitGetType(auto2AA8063C_var) != "CreepTumorBurrowed") && (UnitGetType(auto2AA8063C_var) != "SpineCrawler") && (UnitGetType(auto2AA8063C_var) != "SporeCrawler")) {
            UnitBehaviorAddPlayer(auto2AA8063C_var, "ColonyInfestation", gv_pLAYER_03_INFESTED_REFUGEES, 1);
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "InfestorBurrowed"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Infestor"))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "InfestorBurrowed") || (UnitGetType(EventUnit()) == "Infestor")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "InfestorBurrowed") || (UnitGetType(EventUnit()) == "Infestor")))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Nexus"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Nexus"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Purifier"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Purifier"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Purifier"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Purifier"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Purifier"))) {
            return false;
        }

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

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

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

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

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

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

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


    // Implementation
    autoA7EBEB0F_val = UnitGetType(lp_unit);
    if (autoA7EBEB0F_val == "Overlord") {
        UnitIssueOrder(lp_unit, Order(AbilityCommand("move", 2)), c_orderQueueReplace);

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

            gv_infestationDefenderLocation[lp_colonyIndex][gv_infestationDefenderCount[lp_colonyIndex]] = UnitGetPosition(lp_unit);
            gv_infestationDefenderUnit[lp_colonyIndex][gv_infestationDefenderCount[lp_colonyIndex]] = null;
            gv_infestationDefenderType[lp_colonyIndex][gv_infestationDefenderCount[lp_colonyIndex]] = UnitGetType(lp_unit);
        }

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

        autoEA209D47_n = gv_eggData[(lp_type)].lv_spawnQty;
        for (autoEA209D47_i = 1; autoEA209D47_i <= autoEA209D47_n; autoEA209D47_i += 1) {
            if ((gf_InfestedPlayerisFoodCapped() == false) && (lv_virophage != null) && (UnitIsAlive(lv_virophage) == true) && (UnitGetType(lv_virophage) == "Virophage")) {
                gf_EggSpawnerSpawnAnEgg(lp_type, RegionRandomPoint(RegionCircle(RegionGetCenter(gv_infestationRegion[lv_colonyIndex]), lv_sPAWN_RADIUS)), lv_colonyIndex);
            }

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

        }

        if (!((UnitGetType(EventUnit()) == "NaturalGas"))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Virophage"))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Virophage"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnit()) == "Virophage"))) {
            return false;
        }

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

            libNtve_gf_CreateUnitsWithDefaultFacing(1, gv_eggData[lv_eggType].lv_spawnType, 0, gv_eggData[lv_eggType].lv_spawnOwner, lv_eggPosition);
            AISetUnitSuicide(UnitLastCreated(), true);
            if ((UnitGetType(UnitLastCreated()) == "InfestedAbomination")) {
                gf_SetUnitMaxLife(UnitLastCreated(), gv_aberrationLife);
                TriggerExecute(gt_EggSpawnerAberrationWarningQ, true, false);

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

    for ( ; ( (auto3181AD42_ai >= 0 && lv_colonyIndex <= auto3181AD42_ae) || (auto3181AD42_ai < 0 && lv_colonyIndex >= auto3181AD42_ae) ) ; lv_colonyIndex += auto3181AD42_ai ) {
        lv_virophage = gv_infestationVirophageUnit[lv_colonyIndex];
        if ((lv_virophage != null) && (UnitIsAlive(lv_virophage) == true) && (UnitGetType(lv_virophage) == "Virophage") && (UnitGroupCount(UnitGroup("Feederling", gv_p07_ZERG_INFESTED, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), lv_fEEDERLINGS), c_unitCountAlive) < lv_fEEDERLINGS) && (UnitGroupCount(UnitGroup(null, gv_p01_USER, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
            UnitCreate(1, "Feederling", 0, gv_p07_ZERG_INFESTED, UnitGetPosition(lv_virophage), 270.0);
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "InfestableBiodome") || (UnitGetType(EventUnit()) == "InfestableHut") || (UnitGetType(EventUnit()) == "InfestedCC") || (UnitGetType(EventUnit()) == "InfestedBarracks") || (UnitGetType(EventUnit()) == "InfestedFactory") || (UnitGetType(EventUnit()) == "InfestedStarport") || (UnitGetType(EventUnit()) == "InfestedEngBay")))) {
            return false;
        }

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

                UnitSetPropertyFixed(UnitLastCreated(), c_unitPropMovementSpeed, (UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed) * gv_trainList[lv_trainsToSpawn[lv_i]].lv_speedMultiplier));
                UnitSetPropertyFixed(UnitLastCreated(), c_unitPropLifeMax, gv_trainList[lv_trainsToSpawn[lv_i]].lv_maxLife);
                if ((UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngineFast") && (UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngine")) {
                    ActorLookAtStart(libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]), "Chest", 100, 0.0, libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[(lv_currentCar - 1)]));
                }

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

                UnitSetPropertyFixed(UnitLastCreated(), c_unitPropMovementSpeed, (UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed) * gv_trainList[lv_trainsToSpawn[lv_i]].lv_speedMultiplier));
                UnitSetPropertyFixed(UnitLastCreated(), c_unitPropLifeMax, gv_trainList[lv_trainsToSpawn[lv_i]].lv_maxLife);
                if ((UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngineFast") && (UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngine")) {
                    ActorLookAtStart(libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]), "Chest", 100, 0.0, libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[(lv_currentCar - 1)]));
                }

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

        auto005D2B42_var = UnitGroupUnitFromEnd(auto005D2B42_g, auto005D2B42_u);
        if (auto005D2B42_var == null) { break; }
        if (((UnitGetType(auto005D2B42_var) == "Caboose") || (UnitGetType(auto005D2B42_var) == "FreightCar") || (UnitGetType(auto005D2B42_var) == "TarsonisEngine") || (UnitGetType(auto005D2B42_var) == "TarsonisEngineFast"))) {
            UnitGroupAdd(lv_trainCars, auto005D2B42_var);
        }

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

        auto005D2B42_var = UnitGroupUnitFromEnd(auto005D2B42_g, auto005D2B42_u);
        if (auto005D2B42_var == null) { break; }
        if (((UnitGetType(auto005D2B42_var) == "Caboose") || (UnitGetType(auto005D2B42_var) == "FreightCar") || (UnitGetType(auto005D2B42_var) == "TarsonisEngine") || (UnitGetType(auto005D2B42_var) == "TarsonisEngineFast"))) {
            UnitGroupAdd(lv_trainCars, auto005D2B42_var);
        }

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

        auto005D2B42_var = UnitGroupUnitFromEnd(auto005D2B42_g, auto005D2B42_u);
        if (auto005D2B42_var == null) { break; }
        if (((UnitGetType(auto005D2B42_var) == "Caboose") || (UnitGetType(auto005D2B42_var) == "FreightCar") || (UnitGetType(auto005D2B42_var) == "TarsonisEngine") || (UnitGetType(auto005D2B42_var) == "TarsonisEngineFast"))) {
            UnitGroupAdd(lv_trainCars, auto005D2B42_var);
        }

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

        auto005D2B42_var = UnitGroupUnitFromEnd(auto005D2B42_g, auto005D2B42_u);
        if (auto005D2B42_var == null) { break; }
        if (((UnitGetType(auto005D2B42_var) == "Caboose") || (UnitGetType(auto005D2B42_var) == "FreightCar") || (UnitGetType(auto005D2B42_var) == "TarsonisEngine") || (UnitGetType(auto005D2B42_var) == "TarsonisEngineFast"))) {
            UnitGroupAdd(lv_trainCars, auto005D2B42_var);
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Caboose") || (UnitGetType(EventUnit()) == "FreightCar") || (UnitGetType(EventUnit()) == "TarsonisEngine") || (UnitGetType(EventUnit()) == "TarsonisEngineFast")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Caboose") || (UnitGetType(EventUnit()) == "FreightCar") || (UnitGetType(EventUnit()) == "TarsonisEngine") || (UnitGetType(EventUnit()) == "TarsonisEngineFast")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Caboose") || (UnitGetType(EventUnit()) == "FreightCar") || (UnitGetType(EventUnit()) == "TarsonisEngine") || (UnitGetType(EventUnit()) == "TarsonisEngineFast")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Caboose") || (UnitGetType(EventUnit()) == "FreightCar") || (UnitGetType(EventUnit()) == "TarsonisEngine") || (UnitGetType(EventUnit()) == "TarsonisEngineFast")))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:282

        lv_u = UnitGroupUnitFromEnd(auto8FFA0729_g, auto8FFA0729_u);
        if (lv_u == null) { break; }
        if ((UnitGetType(lv_u) != "SpiderMine") && (UnitGetType(lv_u) != "SpiderMineBurrowed")) {
            return true;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:282

        lv_u = UnitGroupUnitFromEnd(auto8FFA0729_g, auto8FFA0729_u);
        if (lv_u == null) { break; }
        if ((UnitGetType(lv_u) != "SpiderMine") && (UnitGetType(lv_u) != "SpiderMineBurrowed")) {
            return true;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:647

        autoB091E22D_var = UnitGroupUnitFromEnd(autoB091E22D_g, autoB091E22D_u);
        if (autoB091E22D_var == null) { break; }
        auto1D02B692_val = UnitGetType(autoB091E22D_var);
        if (auto1D02B692_val == "ScrapSalvage1x1") {
            UnitSetInfoText(autoB091E22D_var, StringExternal("Param/Value/E4147BF2"), StringExternal("Param/Value/6D92663B"), StringToText(""));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1074


    libNtve_gf_RescueUnit(EventUnit(), gv_p01_USER, true);
    if ((UnitGetType(EventUnit()) == "CommandCenter")) {
        UnitSetPropertyFixed(EventUnit(), c_unitPropEnergy, 50.0);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1159

        }

        if (!(((UnitGetType(EventUnit()) == "Marine")))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1202

        }

        if (!((UnitGetType(EventUnit()) == "CommandCenter"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1583

        }

        if (!(((UnitGetType(EventUnit()) == "Vulture")))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1672

        }

        if (!((UnitGetType(EventUnit()) == "SCV"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1724

        }

        if (!((UnitGetType(EventUnit()) == "SCV"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1780

        }

        if (!((UnitGetType(EventUnit()) == "SCV"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1169

        }

        if (!((UnitGetType(EventUnit()) == "TychusChaingun"))) {
            return false;
        }

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

            lv_chosenUnit = UnitGroupUnitFromEnd(auto1309F81D_g, auto1309F81D_u);
            if (lv_chosenUnit == null) { break; }
            if ((UnitGetOwner(lv_chosenUnit) != gv_p01_USER) && ((UnitGetType(lv_chosenUnit) == "Raven") || (UnitGetType(lv_chosenUnit) == "MissileTurret"))) {
                lv_detectorSpotted = true;
                lv_nearbyDetector = lv_chosenUnit;

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

            lv_chosenUnit = UnitGroupUnitFromEnd(auto1309F81D_g, auto1309F81D_u);
            if (lv_chosenUnit == null) { break; }
            if ((UnitGetOwner(lv_chosenUnit) != gv_p01_USER) && ((UnitGetType(lv_chosenUnit) == "Raven") || (UnitGetType(lv_chosenUnit) == "MissileTurret"))) {
                lv_detectorSpotted = true;
                lv_nearbyDetector = lv_chosenUnit;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:3855

        }

        if (!((UnitGetType(libNtve_gf_AcquiredTarget()) == "Odin"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4355

        }

        if (!((UnitGetType(EventUnit()) == "Odin"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4390

        }

        if (!((UnitGetType(EventUnit()) == "Odin"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4955

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "DevourerTissueSampleTube"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5021

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "DevourerTissueDoodad"))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Civilian") || (UnitGetType(EventUnit()) == "CivilianFemale")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Civilian") || (UnitGetType(EventUnit()) == "CivilianFemale")))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "Hut"))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Blimp") || (UnitGetType(EventUnit()) == "BlimpAds")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Blimp") || (UnitGetType(EventUnit()) == "BlimpAds")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Blimp") || (UnitGetType(EventUnit()) == "BlimpAds")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "Blimp") || (UnitGetType(EventUnit()) == "BlimpAds")))) {
            return false;
        }

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

        auto4D3A1C8E_var = UnitGroupUnitFromEnd(auto4D3A1C8E_g, auto4D3A1C8E_u);
        if (auto4D3A1C8E_var == null) { break; }
        if ((UnitGetCustomValue(auto4D3A1C8E_var, 0) == 0.0) && ((UnitGetType(auto4D3A1C8E_var) == "Civilian") || (UnitGetType(auto4D3A1C8E_var) == "CivilianFemale") || (UnitGetType(auto4D3A1C8E_var) == "Scientist"))) {
            PlayerSetState(gv_p06_CIVILIANS, c_playerStateFidgetingEnabled, false);
            UnitSetCustomValue(auto4D3A1C8E_var, 0, 99.0);

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

        auto4D3A1C8E_var = UnitGroupUnitFromEnd(auto4D3A1C8E_g, auto4D3A1C8E_u);
        if (auto4D3A1C8E_var == null) { break; }
        if ((UnitGetCustomValue(auto4D3A1C8E_var, 0) == 0.0) && ((UnitGetType(auto4D3A1C8E_var) == "Civilian") || (UnitGetType(auto4D3A1C8E_var) == "CivilianFemale") || (UnitGetType(auto4D3A1C8E_var) == "Scientist"))) {
            PlayerSetState(gv_p06_CIVILIANS, c_playerStateFidgetingEnabled, false);
            UnitSetCustomValue(auto4D3A1C8E_var, 0, 99.0);

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

        auto4D3A1C8E_var = UnitGroupUnitFromEnd(auto4D3A1C8E_g, auto4D3A1C8E_u);
        if (auto4D3A1C8E_var == null) { break; }
        if ((UnitGetCustomValue(auto4D3A1C8E_var, 0) == 0.0) && ((UnitGetType(auto4D3A1C8E_var) == "Civilian") || (UnitGetType(auto4D3A1C8E_var) == "CivilianFemale") || (UnitGetType(auto4D3A1C8E_var) == "Scientist"))) {
            PlayerSetState(gv_p06_CIVILIANS, c_playerStateFidgetingEnabled, false);
            UnitSetCustomValue(auto4D3A1C8E_var, 0, 99.0);

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "PickupGrenades"))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "PickupPlasmaGun"))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!(((UnitGetType(EventUnit()) == "PickupChronoRiftDevice") || (UnitGetType(EventUnit()) == "PickupChronoRiftCharge")))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!(((UnitGetType(EventUnit()) == "PickupChronoRiftDevice") || (UnitGetType(EventUnit()) == "PickupChronoRiftCharge")))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "PickupRestorationCharge"))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "SentryGun") || (UnitGetType(EventUnit()) == "SentryGunUnderground")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnit()) == "SentryGun") || (UnitGetType(EventUnit()) == "SentryGunUnderground")))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "CastanarUltraliskShackledUnit"))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitTarget()) == "Warbot"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(libNtve_gf_KillingUnit()) == "Brutalisk"))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "MengskHologramBillboard"))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnit()) == "MengskHologramBillboard"))) {
            return false;
        }