# Triggering Unit

Grammar — Triggering unit
FlagsNative | Function

Returns the triggering unit.

Returns — unit

native unit EventUnit();

# Supported triggers

Category: Unit / Basic

# Examples

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

    // Conditions
    if (testConds) {
        if (!((EventUnit() == gv_boss))) {
            return false;
        }

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:4905

    }

    lv_interceptor = EventUnit();
    gv_level1Interceptors[gv_level1InterceptorCurrentIndex] = lv_interceptor;
    gv_level1InterceptorCurrentIndex = -1;

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

    // Conditions
    if (testConds) {
        if (!((UnitIsValid(EventUnit()) == true))) {
            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:4992

    lv_index = 1;
    for ( ; ( (auto76C66E33_ai >= 0 && lv_index <= auto76C66E33_ae) || (auto76C66E33_ai <= 0 && lv_index >= auto76C66E33_ae) ) ; lv_index += auto76C66E33_ai ) {
        if ((gv_level1Interceptors[lv_index] == EventUnit())) {
            gv_level1Interceptors[lv_index] = null;
        }

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

    // Conditions
    if (testConds) {
        if (!((EventUnit() == gv_boss))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((EventUnit() == gv_boss))) {
            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:5942


    if ((UnitIsAlive(gv_boss) == false)) {
        UnitRemove(EventUnit());
        return true;
    }

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

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p1_USER))) {
            return false;
        }

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:1469

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p1_USER))) {
            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:1604

    }

    auto5EE57277_val = UnitGetType(EventUnit());
    if (auto5EE57277_val == "PalletMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));

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

    auto5EE57277_val = UnitGetType(EventUnit());
    if (auto5EE57277_val == "PalletMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
    }
    else if (auto5EE57277_val == "PalletGas") {

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

    }
    else if (auto5EE57277_val == "PalletGas") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropVespene, 100, UnitGetOwner(EventUnitTargetUnit()));
    }
    else {

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

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p1_USER))) {
            return false;
        }

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

        }

        if (!((UnitFilterMatch(EventUnit(), gv_p1_USER, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true))) {
            return false;
        }

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/thanson02.sc2map/MapScript.galaxy:1266

        }

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

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

    }

    if ((EventUnit() == gv_infestor1)) {
        VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(gv_infestor1), 2.0), 5.0, false);
        libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(gv_infestor1), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);

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

    }

    if ((EventUnit() == gv_infestor2)) {
        VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(gv_infestor2), 2.0), 5.0, false);
        libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(gv_infestor2), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);

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:1326

    }

    if ((EventUnit() == gv_infestor1)) {
        PingDestroy(gv_infestorPing01);
    }

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

    }

    if ((EventUnit() == gv_infestor2)) {
        PingDestroy(gv_infestorPing02);
    }

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/thanson02.sc2map/MapScript.galaxy:1368

    }

    if ((EventUnit() == gv_infestor1)) {
        PingDestroy(gv_infestorPing01);
    }

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

    }

    if ((EventUnit() == gv_infestor2)) {
        PingDestroy(gv_infestorPing02);
    }

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:1062

    }

    if ((EventUnit() == UnitFromId(2466))) {
        PingDestroy(gv_nexusPing1);
        UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/12560FC5"), null, EventUnit());

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

    if ((EventUnit() == UnitFromId(2466))) {
        PingDestroy(gv_nexusPing1);
        UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/12560FC5"), null, EventUnit());
        AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(20), false);
    }

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

    }

    if ((EventUnit() == UnitFromId(2915))) {
        PingDestroy(gv_nexusPing2);
        UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/861B84EA"), null, EventUnit());

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

    if ((EventUnit() == UnitFromId(2915))) {
        PingDestroy(gv_nexusPing2);
        UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/861B84EA"), null, EventUnit());
        AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(19), false);
    }

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

    }

    if ((EventUnit() == UnitFromId(2819))) {
        PingDestroy(gv_nexusPing3);
        UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/B08E2B6C"), null, EventUnit());

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

    if ((EventUnit() == UnitFromId(2819))) {
        PingDestroy(gv_nexusPing3);
        UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/B08E2B6C"), null, EventUnit());
        AIToggleBulliesInRegion(gv_pLAYER02_PROTOSS, RegionFromId(7), 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:1228

    // Conditions
    if (testConds) {
        if (!((EventUnit() == gv_purifier))) {
            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/thanson03b.sc2map/MapScript.galaxy:1372

        }

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

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

    }

    libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropVespene, 100, UnitGetOwner(EventUnitTargetUnit()));
    return true;
}

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

    }

    lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnit(), 1));
    gv_infestationVirophageUnit[lv_colonyIndex] = EventUnitProgressUnit();
    UnitSetCustomValue(gv_infestationVirophageUnit[lv_colonyIndex], 1, IntToFixed(lv_colonyIndex));

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:1655

        }

        if (!(((UnitGetOwner(EventUnit()) == gv_p03_VIROPHAGE) || (UnitGetOwner(EventUnit()) == gv_p07_ZERG_INFESTED)))) {
            return false;
        }

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

        }

        if (!(((UnitGetOwner(EventUnit()) == gv_p03_VIROPHAGE) || (UnitGetOwner(EventUnit()) == gv_p07_ZERG_INFESTED)))) {
            return false;
        }

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

    }

    lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnit(), 1));
    gv_infestationVirophageUnit[lv_colonyIndex] = null;
    gv_hansonGoneWildTransmissionCounter += 1;

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

        }

        if (!((UnitIsValid(EventUnit()) == true))) {
            return false;
        }

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

        }

        if (!((libNtve_gf_PlayerIsEnemy(UnitGetOwner(EventUnit()), gv_p01_USER, libNtve_ge_PlayerRelation_Enemy) == true))) {
            return false;
        }

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

        }

        if (!((UnitFilterMatch(EventUnit(), UnitGetOwner(EventUnit()), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == false))) {
            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/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:2277

        lv_b = 1;
        for ( ; ( (auto23F56A8E_ai >= 0 && lv_b <= auto23F56A8E_ae) || (auto23F56A8E_ai < 0 && lv_b >= auto23F56A8E_ae) ) ; lv_b += auto23F56A8E_ai ) {
            if ((gv_trainList[lv_a].lv_trainCars[lv_b] == EventUnit())) {
                lv_trainIndex = lv_a;
                lv_trainIndexFound = true;

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

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnit()) == gv_pLAYER_06_TRAIN))) {
            return false;
        }

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

        }

        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:2375

        }

        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:2375

        }

        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:2375

        }

        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:1063

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p08_RAYNOR_COMP))) {
            return false;
        }

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

    }

    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: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:1075

    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:1155

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p08_RAYNOR_COMP))) {
            return false;
        }

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:1169

    }

    libNtve_gf_RescueUnit(EventUnit(), gv_p01_USER, true);
    return true;
}

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

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p01_USER))) {
            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:1579

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p03_MIRA_HAN))) {
            return false;
        }

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

        }

        if (!(((UnitGetOwner(EventUnit()) == gv_p01_USER) || (UnitGetOwner(EventUnit()) == gv_p02_TYCHUS)))) {
            return false;
        }

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

        }

        if (!(((UnitGetOwner(EventUnit()) == gv_p01_USER) || (UnitGetOwner(EventUnit()) == gv_p02_TYCHUS)))) {
            return false;
        }

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

        }

        if (!(((UnitFilterMatch(EventUnit(), gv_p01_USER, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) || (UnitFilterMatch(EventUnit(), gv_p02_TYCHUS, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true)))) {
            return false;
        }

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

        }

        if (!(((UnitFilterMatch(EventUnit(), gv_p01_USER, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) || (UnitFilterMatch(EventUnit(), gv_p02_TYCHUS, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true)))) {
            return false;
        }

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

        }

        if (!((EventUnit() == UnitFromId(4)))) {
            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:1470

    // Conditions
    if (testConds) {
        if (!((EventUnit() == gv_battlecruiser1))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((EventUnit() == gv_battlecruiser2))) {
            return false;
        }

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

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p01_USER))) {
            return false;
        }

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

        }

        if (!((UnitFilterMatch(EventUnit(), gv_p01_USER, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true))) {
            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:1357


    Wait(0.5, c_timeGame);
    autoC0A4CB95_g = UnitGroup(null, gv_p06_CIVILIANS, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter((1 << c_targetFilterBiological), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoC0A4CB95_u = UnitGroupCount(autoC0A4CB95_g, c_unitCountAll);
    for (;; autoC0A4CB95_u -= 1) {

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

            libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoC0A4CB95_var), c_animNameDefault, "Fidget Inferior End", 0, c_animTimeDefault);
            UnitBehaviorAdd(autoC0A4CB95_var, "Run", autoC0A4CB95_var, 1);
            UnitIssueOrder(autoC0A4CB95_var, OrderTargetingUnit(null, UnitGroupRandomUnit(UnitGroup("Hut", gv_p06_CIVILIANS, RegionCircle(UnitGetPosition(EventUnit()), 50.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
        }

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:1392

        }

        if (!((UnitGetOwner(EventUnit()) == gv_p06_CIVILIANS))) {
            return false;
        }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnit()) == gv_p06_CIVILIANS))) {
            return false;
        }

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

        }

        if (!((UnitGetCustomValue(EventUnit(), 1) == 99.0))) {
            return false;
        }

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


    gv_civilianVehicleCounter -= 1;
    UnitRemove(EventUnit());
    return true;
}

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

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnit()) == gv_p06_CIVILIANS))) {
            return false;
        }

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_textLoc = UnitGetPosition(EventUnit());

    // Conditions

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:1453

    }
    gv_statWeaponsCollected += 1;
    UnitRemove(EventUnit());
    SoundPlay(SoundLink("TUISecret", 0), PlayerGroupAll(), 100.0, 0.0);
    if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_textLoc = UnitGetPosition(EventUnit());

    // Conditions

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:1529

    }
    gv_statWeaponsCollected += 1;
    UnitRemove(EventUnit());
    SoundPlay(SoundLink("TUISecret", 0), PlayerGroupAll(), 100.0, 0.0);
    if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {

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

    // Automatic Variable Declarations
    // Variable Initialization
    lv_textLoc = UnitGetPosition(EventUnit());

    // Conditions

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:1605

    }
    gv_statWeaponsCollected += 1;
    UnitRemove(EventUnit());
    SoundPlay(SoundLink("TUISecret", 0), PlayerGroupAll(), 100.0, 0.0);
    if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {