# Triggering Ability Target Unit

Grammar — Triggering ability target unit
FlagsNative | Function

Returns the triggering ability targeted unit. Used in response to “Unit Uses Ability”.

Returns — unit

native unit EventUnitTargetUnit();

# Supported triggers

Category: Ability / Basic

# Examples

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/thanson03a.sc2map/MapScript.galaxy:3592


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

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


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

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/thorner01.sc2map/MapScript.galaxy:3243

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitTargetUnit()) == gv_pLAYER_01_USER))) {
            return false;
        }

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

        }

        if (!((UnitGetOwner(EventUnitTargetUnit()) == gv_pLAYER_01_USER))) {
            return false;
        }

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

    auto4ABEF2E3_val = UnitGetType(EventUnit());
    if (auto4ABEF2E3_val == "NaturalMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 100;
    }

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

    }
    else if (auto4ABEF2E3_val == "MineralCrystal") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 100;
    }

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

    }
    else if (auto4ABEF2E3_val == "PalletMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 100;
    }

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

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

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

    }
    else if (auto4ABEF2E3_val == "ScrapSalvage1x1") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 25, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 25;
    }

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

    }
    else if (auto4ABEF2E3_val == "ScrapSalvage2x2") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 75, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 75;
    }

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

    }

    TextTagCreate(StringExternal("Param/Value/C0CD930D"), 22, UnitGetPosition(EventUnitTargetUnit()), 0.4, true, true, PlayerGroupAll());
    TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 100.00, 0.00));
    TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, 3.0);

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

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode") || (UnitGetType(EventUnitTargetUnit()) == "TerrazineCanister")))) {
            return false;
        }

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

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode") || (UnitGetType(EventUnitTargetUnit()) == "TerrazineCanister")))) {
            return false;
        }

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

    lv_harvestingSCV = EventUnit();
    UnitBehaviorAdd(lv_harvestingSCV, "HarvestingTerrazine", lv_harvestingSCV, 1);
    lv_customTerrazineGasValue = FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0));
    gv_gasControlCount += 1;
    gv_gasHarvestingCount += 1;

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

    gv_gasControlCount += 1;
    gv_gasHarvestingCount += 1;
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        SoundPlayOnUnit(SoundLink("PhaseMineBlastSplit", -1), PlayerGroupAll(), EventUnitTargetUnit(), 0.0, 100.0, 0.0);
        gv_terrazineHarvesting = EventUnitTargetUnit();

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

    gv_gasHarvestingCount += 1;
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        SoundPlayOnUnit(SoundLink("PhaseMineBlastSplit", -1), PlayerGroupAll(), EventUnitTargetUnit(), 0.0, 100.0, 0.0);
        gv_terrazineHarvesting = EventUnitTargetUnit();
    }

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

    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        SoundPlayOnUnit(SoundLink("PhaseMineBlastSplit", -1), PlayerGroupAll(), EventUnitTargetUnit(), 0.0, 100.0, 0.0);
        gv_terrazineHarvesting = EventUnitTargetUnit();
    }

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

    }

    libNtve_gf_SendActorMessageToUnit(EventUnitTargetUnit(), "Signal TerranStart");
    UnitSetCustomValue(lv_harvestingSCV, 0, UnitGetCustomValue(EventUnitTargetUnit(), 0));
    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);

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


    libNtve_gf_SendActorMessageToUnit(EventUnitTargetUnit(), "Signal TerranStart");
    UnitSetCustomValue(lv_harvestingSCV, 0, UnitGetCustomValue(EventUnitTargetUnit(), 0));
    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);
    UnitForceStatusBar(EventUnitTargetUnit(), true);

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

    UnitSetCustomValue(lv_harvestingSCV, 0, UnitGetCustomValue(EventUnitTargetUnit(), 0));
    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);
    UnitForceStatusBar(EventUnitTargetUnit(), true);
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 60);

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

    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);
    UnitForceStatusBar(EventUnitTargetUnit(), true);
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 60);
        UnitBehaviorAdd(EventUnitTargetUnit(), "TerrazineCountdownDummyBar", EventUnitTargetUnit(), 1);

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

        }

        if (!((UnitGetType(EventUnitTargetUnit()) != null))) {
            return false;
        }

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


    Wait(1.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) == gv_pLAYER01_USER)) {
        return true;
    }

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

    }

    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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

    }

    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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


    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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


    Wait(0.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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


    Wait(0.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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

    Wait(0.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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

    }

    gv_dominatedUnit = EventUnitTargetUnit();
    auto729F00AE_g = gv_p2LZGuards;
    auto729F00AE_u = UnitGroupCount(auto729F00AE_g, c_unitCountAll);

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

        auto729F00AE_var = UnitGroupUnitFromEnd(auto729F00AE_g, auto729F00AE_u);
        if (auto729F00AE_var == null) { break; }
        if ((EventUnitTargetUnit() == auto729F00AE_var)) {
            UnitGroupRemove(gv_p2LZGuards, auto729F00AE_var);
        }

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

    TriggerExecute(gt_DominionSuppliesTipQ, true, false);
    if ((UnitGetType(EventUnit()) == "PalletMinerals")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

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


    if ((UnitGetType(EventUnit()) == "NaturalGas")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropVespene, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

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


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

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:3473


    if ((UnitGetType(EventUnit()) == "MineralCrystal")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:3477


    if ((UnitGetType(EventUnit()) == "NaturalGas")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropVespene, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitTargetUnit()) == "Ultralisk"))) {
            return false;
        }

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

        libCamp_gf_SendTransmissionCampaign(gv_tHEONEZERATUL, SoundLink("TZeratul01Zeratul00074", -1), c_transmissionDurationAdd, 0.0, false);
        TransmissionWait(TransmissionLastSent(), 4.0);
        UnitIssueOrder(gv_tHEONEKARASS, OrderTargetingUnit(AbilityCommand("attack", 0), EventUnitTargetUnit()), c_orderQueueAddToFront);
        Wait(4.0, c_timeReal);
        libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);

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

    autoDDD46246_val = UnitGetType(EventUnit());
    if (autoDDD46246_val == "NaturalMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
    }
    else if (autoDDD46246_val == "NaturalGas") {

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

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

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.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.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:1609

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

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


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

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


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

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

    }

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

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

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitTargetUnit()) == gv_pLAYER_01_USER))) {
            return false;
        }

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

        }

        if (!((UnitGetOwner(EventUnitTargetUnit()) == gv_pLAYER_01_USER))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:2451

    auto4ABEF2E3_val = UnitGetType(EventUnit());
    if (auto4ABEF2E3_val == "NaturalMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 100;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:2455

    }
    else if (auto4ABEF2E3_val == "MineralCrystal") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 100;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:2459

    }
    else if (auto4ABEF2E3_val == "PalletMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 100;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:2463

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

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:2466

    }
    else if (auto4ABEF2E3_val == "ScrapSalvage1x1") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 25, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 25;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:2470

    }
    else if (auto4ABEF2E3_val == "ScrapSalvage2x2") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 75, UnitGetOwner(EventUnitTargetUnit()));
        gv_salvageTotal += 75;
    }

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

    }

    TextTagCreate(StringExternal("Param/Value/C0CD930D"), 22, UnitGetPosition(EventUnitTargetUnit()), 0.4, true, true, PlayerGroupAll());
    TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 100.00, 0.00));
    TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, 3.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1681

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode") || (UnitGetType(EventUnitTargetUnit()) == "TerrazineCanister")))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1681

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode") || (UnitGetType(EventUnitTargetUnit()) == "TerrazineCanister")))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1697

    lv_harvestingSCV = EventUnit();
    UnitBehaviorAdd(lv_harvestingSCV, "HarvestingTerrazine", lv_harvestingSCV, 1);
    lv_customTerrazineGasValue = FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0));
    gv_gasControlCount += 1;
    gv_gasHarvestingCount += 1;

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

    gv_gasControlCount += 1;
    gv_gasHarvestingCount += 1;
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        SoundPlayOnUnit(SoundLink("PhaseMineBlastSplit", -1), PlayerGroupAll(), EventUnitTargetUnit(), 0.0, 100.0, 0.0);
        gv_terrazineHarvesting = EventUnitTargetUnit();

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1701

    gv_gasHarvestingCount += 1;
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        SoundPlayOnUnit(SoundLink("PhaseMineBlastSplit", -1), PlayerGroupAll(), EventUnitTargetUnit(), 0.0, 100.0, 0.0);
        gv_terrazineHarvesting = EventUnitTargetUnit();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1702

    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        SoundPlayOnUnit(SoundLink("PhaseMineBlastSplit", -1), PlayerGroupAll(), EventUnitTargetUnit(), 0.0, 100.0, 0.0);
        gv_terrazineHarvesting = EventUnitTargetUnit();
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1705

    }

    libNtve_gf_SendActorMessageToUnit(EventUnitTargetUnit(), "Signal TerranStart");
    UnitSetCustomValue(lv_harvestingSCV, 0, UnitGetCustomValue(EventUnitTargetUnit(), 0));
    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1706


    libNtve_gf_SendActorMessageToUnit(EventUnitTargetUnit(), "Signal TerranStart");
    UnitSetCustomValue(lv_harvestingSCV, 0, UnitGetCustomValue(EventUnitTargetUnit(), 0));
    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);
    UnitForceStatusBar(EventUnitTargetUnit(), true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1708

    UnitSetCustomValue(lv_harvestingSCV, 0, UnitGetCustomValue(EventUnitTargetUnit(), 0));
    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);
    UnitForceStatusBar(EventUnitTargetUnit(), true);
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 60);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:1709

    UnitBehaviorAdd(lv_harvestingSCV, "ProgressBar", lv_harvestingSCV, 1);
    UnitForceStatusBar(EventUnitTargetUnit(), true);
    if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
        UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 60);
        UnitBehaviorAdd(EventUnitTargetUnit(), "TerrazineCountdownDummyBar", EventUnitTargetUnit(), 1);

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

        }

        if (!((UnitGetType(EventUnitTargetUnit()) != null))) {
            return false;
        }

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


    Wait(1.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) == gv_pLAYER01_USER)) {
        return true;
    }

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

    }

    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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

    }

    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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


    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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


    Wait(0.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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


    Wait(0.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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

    Wait(0.5, c_timeGame);
    if ((UnitGetOwner(EventUnitTargetUnit()) != gv_pLAYER01_USER) && (UnitHasBehavior(EventUnitTargetUnit(), "SpectreCloaking") == true)) {
        UnitIssueOrder(EventUnitTargetUnit(), Order(AbilityCommand("RogueGhostCloak", 1)), c_orderQueueReplace);
    }

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

    }

    gv_dominatedUnit = EventUnitTargetUnit();
    auto729F00AE_g = gv_p2LZGuards;
    auto729F00AE_u = UnitGroupCount(auto729F00AE_g, c_unitCountAll);

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

        auto729F00AE_var = UnitGroupUnitFromEnd(auto729F00AE_g, auto729F00AE_u);
        if (auto729F00AE_var == null) { break; }
        if ((EventUnitTargetUnit() == auto729F00AE_var)) {
            UnitGroupRemove(gv_p2LZGuards, auto729F00AE_var);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5323

    TriggerExecute(gt_DominionSuppliesTipQ, true, false);
    if ((UnitGetType(EventUnit()) == "PalletMinerals")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5327


    if ((UnitGetType(EventUnit()) == "NaturalGas")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropVespene, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5331


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

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2mapMapScript.galaxy:3473


    if ((UnitGetType(EventUnit()) == "MineralCrystal")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2mapMapScript.galaxy:3477


    if ((UnitGetType(EventUnit()) == "NaturalGas")) {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropVespene, 100, UnitGetOwner(EventUnitTargetUnit()));
    }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitTargetUnit()) == "Ultralisk"))) {
            return false;
        }

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

        libCamp_gf_SendTransmissionCampaign(gv_tHEONEZERATUL, SoundLink("TZeratul01Zeratul00074", -1), c_transmissionDurationAdd, 0.0, false);
        TransmissionWait(TransmissionLastSent(), 4.0);
        UnitIssueOrder(gv_tHEONEKARASS, OrderTargetingUnit(AbilityCommand("attack", 0), EventUnitTargetUnit()), c_orderQueueAddToFront);
        Wait(4.0, c_timeReal);
        libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2mapMapScript.galaxy:1729

    autoDDD46246_val = UnitGetType(EventUnit());
    if (autoDDD46246_val == "NaturalMinerals") {
        libCamp_gf_DestroyCacheAndGivePlayerResources(EventUnit(), c_playerPropMinerals, 100, UnitGetOwner(EventUnitTargetUnit()));
    }
    else if (autoDDD46246_val == "NaturalGas") {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2mapMapScript.galaxy:1732

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

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

        }

        if (!((DataTableGetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit())))) == c_invalidDialogId))) {
            return false;
        }

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

    lv_warpAwayBar = DialogLastCreated();
    DialogSetImageVisible(DialogLastCreated(), false);
    DialogSetPositionRelativeToUnit(DialogLastCreated(), EventUnitTargetUnit(), "Ref_Center", -100, -30);
    DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_GameUnitFrame/SmallProgressUnitFrameTemplate");
    lv_warpAwayPanel = DialogControlLastCreated();

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

    lv_warpAwayProgressBar = DialogControlLastCreated();
    DialogSetVisible(lv_warpAwayBar, PlayerGroupAll(), true);
    DataTableSetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit()))), lv_warpAwayBar);
    while ((UnitIsAlive(EventUnitTargetUnit()) == true)) {
        DialogSetPositionRelativeToUnit(lv_warpAwayBar, EventUnitTargetUnit(), "Ref_Center", -100, -90);

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

    DialogSetVisible(lv_warpAwayBar, PlayerGroupAll(), true);
    DataTableSetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit()))), lv_warpAwayBar);
    while ((UnitIsAlive(EventUnitTargetUnit()) == true)) {
        DialogSetPositionRelativeToUnit(lv_warpAwayBar, EventUnitTargetUnit(), "Ref_Center", -100, -90);
        lv_distancetoTarget = (DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0);

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

    DataTableSetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit()))), lv_warpAwayBar);
    while ((UnitIsAlive(EventUnitTargetUnit()) == true)) {
        DialogSetPositionRelativeToUnit(lv_warpAwayBar, EventUnitTargetUnit(), "Ref_Center", -100, -90);
        lv_distancetoTarget = (DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0);
        if ((UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent) > 0.0) && (lv_distancetoTarget >= 0.0)) {

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

    while ((UnitIsAlive(EventUnitTargetUnit()) == true)) {
        DialogSetPositionRelativeToUnit(lv_warpAwayBar, EventUnitTargetUnit(), "Ref_Center", -100, -90);
        lv_distancetoTarget = (DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0);
        if ((UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent) > 0.0) && (lv_distancetoTarget >= 0.0)) {
            lv_timetoTarget = (lv_distancetoTarget / UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent));

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

        DialogSetPositionRelativeToUnit(lv_warpAwayBar, EventUnitTargetUnit(), "Ref_Center", -100, -90);
        lv_distancetoTarget = (DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0);
        if ((UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent) > 0.0) && (lv_distancetoTarget >= 0.0)) {
            lv_timetoTarget = (lv_distancetoTarget / UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent));
        }

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

        lv_distancetoTarget = (DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0);
        if ((UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent) > 0.0) && (lv_distancetoTarget >= 0.0)) {
            lv_timetoTarget = (lv_distancetoTarget / UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent));
        }
        else {

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

        else {
            libNtve_gf_SetDialogItemText(lv_warpAwayValue, TextTimeFormat(StringToText("<sectotal/>"), FixedToInt(lv_timetoTarget)), PlayerGroupAll());
            DialogControlSetSize(lv_warpAwayProgressBar, PlayerGroupAll(), FixedToInt((IntToFixed(lv_c_Width) * ((DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0) / 19.0))), lv_c_Height);
            libNtve_gf_SetDialogItemColor(lv_warpAwayProgressBar, libSwaC_gf_GetProgressBarColorCampaign(), PlayerGroupAll());
            DialogSetVisible(lv_warpAwayBar, PlayerGroupAll(), true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:1613

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "KarakMale") || (UnitGetType(EventUnitTargetUnit()) == "Lyote") || (UnitGetType(EventUnitTargetUnit()) == "Anteplott") || (UnitGetType(EventUnitTargetUnit()) == "UrsadakFemale") || (UnitGetType(EventUnitTargetUnit()) == "GiantYeti")))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:1613

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "KarakMale") || (UnitGetType(EventUnitTargetUnit()) == "Lyote") || (UnitGetType(EventUnitTargetUnit()) == "Anteplott") || (UnitGetType(EventUnitTargetUnit()) == "UrsadakFemale") || (UnitGetType(EventUnitTargetUnit()) == "GiantYeti")))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:1613

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "KarakMale") || (UnitGetType(EventUnitTargetUnit()) == "Lyote") || (UnitGetType(EventUnitTargetUnit()) == "Anteplott") || (UnitGetType(EventUnitTargetUnit()) == "UrsadakFemale") || (UnitGetType(EventUnitTargetUnit()) == "GiantYeti")))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:1613

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "KarakMale") || (UnitGetType(EventUnitTargetUnit()) == "Lyote") || (UnitGetType(EventUnitTargetUnit()) == "Anteplott") || (UnitGetType(EventUnitTargetUnit()) == "UrsadakFemale") || (UnitGetType(EventUnitTargetUnit()) == "GiantYeti")))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:1613

        }

        if (!(((UnitGetType(EventUnitTargetUnit()) == "KarakMale") || (UnitGetType(EventUnitTargetUnit()) == "Lyote") || (UnitGetType(EventUnitTargetUnit()) == "Anteplott") || (UnitGetType(EventUnitTargetUnit()) == "UrsadakFemale") || (UnitGetType(EventUnitTargetUnit()) == "GiantYeti")))) {
            return false;
        }