# Turn Trigger On/Off

Grammar — Turn t state|On/Off
FlagsNative | Action

Turning a trigger off will prevent it from responding to events. A turned off trigger can still be run directly via a “Run Trigger” action.

# Arguments

  • trigger — Trigger
  • bool<preset::OnOffOption> — State

Returns — void

native void TriggerEnable(trigger t, bool enable);

Category: Trigger / Basic

# Examples

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

    TriggerStop(gt_TerraTronSawSpawned);
    TriggerStop(gt_TerraTronSawBehavior);
    TriggerEnable(gt_TerraTronSawBehavior, false);
    TriggerStop(gt_FireSpinMissiles);
    TimerPause(gv_missileSpinnerFireTimer, true);

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

    DialogControlFadeTransparency(gv_controlTipLabel2, PlayerGroupAll(), 0.0, 0.0);
    DialogSetVisible(gv_controlTipDialog, PlayerGroupAll(), true);
    TriggerEnable(gt_StartButtonClicked, true);
    gv_controlTipStartButtonClicked = false;
    while (!((gv_controlTipStartButtonClicked == true))) {

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

    DialogControlSetFullDialog(DialogControlLastCreated(), PlayerGroupAll(), true);
    DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
    TriggerEnable(gt_ScoreScreenCloseButtonClicked, true);
    TriggerEnable(gt_ScoreScreenSpacebarPressed, true);
    while (!((gv_scoreScreenCloseButton == c_invalidDialogControlId))) {

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

    DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
    TriggerEnable(gt_ScoreScreenCloseButtonClicked, true);
    TriggerEnable(gt_ScoreScreenSpacebarPressed, true);
    while (!((gv_scoreScreenCloseButton == c_invalidDialogControlId))) {
        Wait(0.25, c_timeGame);

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

    DialogDestroy(lv_dlg);
    DialogDestroy(lv_dlg2);
    TriggerEnable(gt_ScoreScreenCloseButtonClicked, false);
    TriggerEnable(gt_ScoreScreenSpacebarPressed, false);
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);

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

    DialogDestroy(lv_dlg2);
    TriggerEnable(gt_ScoreScreenCloseButtonClicked, false);
    TriggerEnable(gt_ScoreScreenSpacebarPressed, false);
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
}

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

    gf_FromatBackPlayButton(libNtve_gf_ScreenButton(gv_c_ScreenButton_Quit));
    libNtve_gf_SetDialogItemTooltip(libNtve_gf_ScreenButton(gv_c_ScreenButton_Quit), StringExternal("Param/Value/7B6BAF53"), PlayerGroupAll());
    TriggerEnable(gt_EscapeKeyMenu, true);
    while (true) {
        gv_gameResult = 0;

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

    }

    TriggerEnable(gt_Level1BossInterceptorSpawned, true);
    lv_bounds = gf_GetCameraBoundary();
    lv_spawnLoc = RegionGetCenter(lv_bounds);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "LostViking_MusicBossKilled", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    libNtve_gf_MakeUnitInvulnerable(gv_viking, true);

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

    TriggerStop(gt_Level1BossCarrierBehavior);
    TriggerStop(gt_Level1BossRoundTimer);
    TriggerEnable(gt_Level1BossInterceptorSpawned, false);
    Wait(3.0, c_timeGame);
    gv_levelCleared = true;

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

    Wait(0.1, c_timeGame);
    UnitIssueOrder(UnitFromId(290), OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(RegionFromId(31))), c_orderQueueReplace);
    TriggerEnable(gt_FirebatMove, false);
    TriggerEnable(gt_DefeatTacticalPhase, true);
    return true;

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

    UnitIssueOrder(UnitFromId(290), OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(RegionFromId(31))), c_orderQueueReplace);
    TriggerEnable(gt_FirebatMove, false);
    TriggerEnable(gt_DefeatTacticalPhase, true);
    return true;
}

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UnitRemove(UnitFromId(290));
    return true;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupAdd(lv_zerglingGroup, UnitFromId(2441));
    UnitGroupAdd(lv_zerglingGroup, UnitFromId(2440));

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    libNtve_gf_CreateUnitsAtPoint2(1, "CivilianFemale", 0, 0, PointFromId(86));
    gv_crazyRidley = UnitLastCreated();

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    lv_zerglingGroup = UnitGroup(null, gv_p5_ZERG_TACTICALPHASE, RegionFromId(14), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    while (true) {

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    libNtve_gf_ShareVisionofUnit(UnitFromId(2440), false, gv_p1_USER);
    libNtve_gf_ShareVisionofUnit(UnitFromId(2442), false, gv_p1_USER);

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

    libNtve_gf_ShareVisionofUnit(UnitFromId(2441), false, gv_p1_USER);
    UnitKill(UnitFromId(2508));
    TriggerEnable(gt_ZergontheLoose, false);
    TriggerEnable(gt_ZergontheLoose2, false);
    TriggerExecute(gt_MainObjectiveReachHansonComplete, true, false);

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

    UnitKill(UnitFromId(2508));
    TriggerEnable(gt_ZergontheLoose, false);
    TriggerEnable(gt_ZergontheLoose2, false);
    TriggerExecute(gt_MainObjectiveReachHansonComplete, true, false);
    Wait(2.0, c_timeReal);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    libCamp_gf_SetStoryState(libCamp_ge_StoryStateID_StoryStateTipZergCreepPlayed, 1);

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

    TimerWindowSetColor(gv_mainTimerWindow, c_timerWindowColorTitle, Color(100.00, 0.00, 0.00), 0.0);
    TimerWindowShow(gv_mainTimerWindow, PlayerGroupAll(), true);
    TriggerEnable(gt_VictoryInfestationPurged, true);
    TriggerEnable(gt_InfestedAreasClear, true);
    TriggerEnable(gt_InfestationFirstSight, true);

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

    TimerWindowShow(gv_mainTimerWindow, PlayerGroupAll(), true);
    TriggerEnable(gt_VictoryInfestationPurged, true);
    TriggerEnable(gt_InfestedAreasClear, true);
    TriggerEnable(gt_InfestationFirstSight, true);
    Wait(3.0, c_timeReal);

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

    TriggerEnable(gt_VictoryInfestationPurged, true);
    TriggerEnable(gt_InfestedAreasClear, true);
    TriggerEnable(gt_InfestationFirstSight, true);
    Wait(3.0, c_timeReal);
    TriggerExecute(gt_ObjectiveCleansetheInfestationCreateQ, true, true);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_InitialAttack, true, false);
    TriggerExecute(gt_InfestationSpawning, true, false);

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

        UnitGroupAdd(gv_infestedStructureGroup, autoA091F957_var);
    }
    TriggerEnable(gt_ShowRemainingInfestedStructures, true);
    return true;
}

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

        TimerWindowSetColor(gv_mainTimerWindow, c_timerWindowColorTitle, Color(0.00, 100.00, 0.00), 0.0);
        TimerWindowShow(gv_mainTimerWindow, PlayerGroupAll(), true);
        TriggerEnable(gt_SolarCombustionCheck, true);
        AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionEntireMap(), false);
        TriggerEnable(gt_NightDefenderReaction, false);

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

        TriggerEnable(gt_SolarCombustionCheck, true);
        AIToggleBulliesInRegion(gv_pLAYER_03_INFESTED_REFUGEES, RegionEntireMap(), false);
        TriggerEnable(gt_NightDefenderReaction, false);
        libCamp_gf_CreateMissionAutosavePoint(TextReplaceWord(StringExternal("Param/Value/70B324C3"), StringExternal("Param/Value/7B02C8CB"), IntToText(gv_day), c_stringReplaceAll, c_stringCase));
    }

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

            TriggerExecute(gt_NightlyAttackWavesP03HI, true, false);
        }
        TriggerEnable(gt_SolarCombustionCheck, false);
        TriggerExecute(gt_InfestedAreaBullies, true, false);
        TriggerEnable(gt_NightDefenderReaction, true);

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

        TriggerEnable(gt_SolarCombustionCheck, false);
        TriggerExecute(gt_InfestedAreaBullies, true, false);
        TriggerEnable(gt_NightDefenderReaction, true);
        TriggerExecute(gt_IntroHellions, true, false);
        auto22DC2D8F_ae = gv_infestableStructureSize;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerEnable(gt_InfestorSouthFoundEarly, false);
    TriggerExecute(gt_ResearchObjectiveKilltheInfestorsCreateQ, true, true);

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

        UnitSetPropertyFixed(gv_purifier, c_unitPropShieldsPercent, 0.0);
        UnitSetPropertyFixed(gv_purifier, c_unitPropShieldsRegen, -30.0);
        TriggerEnable(gt_PurifierUsesVortex, true);
    }

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_purifierProgressCounter = 1;
    Wait(3.0, c_timeGame);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_purifierProgressCounter = 2;
    Wait(3.0, c_timeGame);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_purifierProgressCounter = 3;
    Wait(3.0, c_timeGame);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_purifierProgressCounter = 4;
    Wait(3.0, c_timeGame);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_purifierProgressCounter = 5;
    Wait(3.0, c_timeGame);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    lv_target_Group = UnitGroup(null, gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(765)), 12.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    UnitIssueOrder(gv_purifier, OrderTargetingPoint(AbilityCommand("VortexPurifier", 0), UnitGetPosition(UnitGroupRandomUnit(lv_target_Group, c_unitCountAlive))), c_orderQueueAddToFront);

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

void gt_PurifierUsesVortex_Init () {
    gt_PurifierUsesVortex = TriggerCreate("gt_PurifierUsesVortex_Func");
    TriggerEnable(gt_PurifierUsesVortex, false);
    TriggerAddEventTimePeriodic(gt_PurifierUsesVortex, 0.25, c_timeGame);
}

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_colonyOutpostsSaved = 4;
    TriggerExecute(gt_WarpInBetaTerrorFleet, true, false);

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

    gv_colonyOutpostsSaved = 4;
    TriggerExecute(gt_WarpInBetaTerrorFleet, true, false);
    TriggerEnable(gt_TerrorFleetBetaDestroyed, true);
    TriggerEnable(gt_ColonistBehavioratBaseBeta, false);
    Wait(20.0, c_timeGame);

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

    PlayerPauseAllCooldowns(gv_p01_USER, false);
    CreepSetSpeed(c_creepSpeedGrowth, 1000.0);
    TriggerEnable(gt_ColonistLoad, true);
    TriggerEnable(gt_ColonistUnload, true);
    TriggerExecute(gt_CarrionBirds, true, false);

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

    CreepSetSpeed(c_creepSpeedGrowth, 1000.0);
    TriggerEnable(gt_ColonistLoad, true);
    TriggerEnable(gt_ColonistUnload, true);
    TriggerExecute(gt_CarrionBirds, true, false);
    TriggerExecute(gt_InitialInfestation, true, false);

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

void gt_ColonistLoad_Init () {
    gt_ColonistLoad = TriggerCreate("gt_ColonistLoad_Func");
    TriggerEnable(gt_ColonistLoad, false);
    TriggerAddEventUnitRegion(gt_ColonistLoad, null, RegionFromId(10), true);
    TriggerAddEventUnitRegion(gt_ColonistLoad, null, RegionFromId(9), true);

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

void gt_ColonistUnload_Init () {
    gt_ColonistUnload = TriggerCreate("gt_ColonistUnload_Func");
    TriggerEnable(gt_ColonistUnload, false);
    TriggerAddEventTimePeriodic(gt_ColonistUnload, 1.0, c_timeGame);
}

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TimerPause(gv_aberrationStartTimer, true);
    TimerPause(gv_aberrationWarningCooldown, true);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THanson03BMusicOutro", c_soundtrackCueAny, c_soundtrackIndexAny, false);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TimerPause(gv_aberrationStartTimer, true);
    TimerPause(gv_aberrationWarningCooldown, true);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    libCamp_gf_CreateTipFromConversationState("StoryTips|Hanson03b_Virophage", libNtve_ge_TipType_NormalTip, PlayerGroupAll());

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    libCamp_gf_CreateTipFromConversationState("StoryTips|Hanson03_Viking", libNtve_ge_TipType_NewUnit, PlayerGroupAll());

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    Wait(gv_trainWaveWait, c_timeGame);
    Wait((gv_trainWaveWait - 30.0), c_timeAI);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    while (!(((UnitGroupCount(gv_patrolTop, c_unitCountAlive) >= 1) || (UnitGroupCount(gv_patrolBottom, c_unitCountAlive) >= 1) || (UnitGroupCount(gv_patrolSingle, c_unitCountAlive) >= 1)))) {
        Wait(1.0, c_timeGame);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if ((gv_gameOver == true)) {

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if ((gv_gameOver == true)) {

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if ((gv_gameOver == true)) {

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    while (!(((UnitGroupCount(UnitGroup("Bunker", gv_pLAYER_02_DOMINION, RegionFromId(6), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Bunker", gv_pLAYER_03_DOMINION, RegionFromId(1), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Bunker", gv_pLAYER_04_DOMINION, RegionFromId(1), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)))) {
        Wait(1.0, c_timeGame);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    Wait(6.0, c_timeReal);
    TriggerQueueEnter();

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if ((gv_gameOver == true)) {

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if ((gv_gameOver == true)) {

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if ((gv_gameOver == true)) {

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

        libNtve_gf_CreateModelAtPoint("GhostNukeIndicator", RegionGetCenter(RegionFromId(55)));
        gv_nukeActor = libNtve_gf_ActorLastCreated();
        TriggerEnable(gt_GhostDiesRemoveNukeActor, true);
    }

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

    TriggerExecute(gt_CreateOrlanCommandCenterPings, true, false);
    Wait(4.0, c_timeReal);
    TriggerEnable(gt_DefeatBaseDead, true);
    TriggerExecute(gt_MercenaryContractTipQ, true, false);
    Wait(5.0, c_timeGame);

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

    }

    TriggerEnable(gt_OrlanRetributiveNuke, true);
    libLbty_gf_OrderWorkerstoGatherNearbyResources(RegionFromId(61), gv_p01_USER);
    MinimapPing(PlayerGroupAll(), PointFromId(47), 6.0, Color(0.00, 100.00, 0.00));

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    autoE8678206_g = gv_playerSCVs;
    autoE8678206_u = UnitGroupCount(autoE8678206_g, c_unitCountAll);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(893)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(767)), 8.0), 6.0, false);

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

    BoardMinimizeShow(gv_merc_Contract_Price_Board, PlayerGroupAll(), false);
    SoundPlay(SoundLink("TUI_StarmapMenuPopup", -1), PlayerGroupAll(), 100.0, 0.0);
    TriggerEnable(gt_OrlanMineralCount, true);
    return true;
}

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_miraHanContractBought = true;
    UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner02", "Loading Screen Restart 2"));

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

    gv_miraHanContractBought = true;
    UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner02", "Loading Screen Restart 2"));
    TriggerEnable(gt_OrlanMineralCount, false);
    TriggerEnable(gt_MiraHanDestroyed, false);
    TriggerStop(gt_MiraHanDestroyed);

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

    UISetRestartLoadingScreen(ConversationDataStateText("Maps|THorner02", "Loading Screen Restart 2"));
    TriggerEnable(gt_OrlanMineralCount, false);
    TriggerEnable(gt_MiraHanDestroyed, false);
    TriggerStop(gt_MiraHanDestroyed);
    TriggerEnable(gt_UpdateContractWindow, false);

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

    TriggerEnable(gt_MiraHanDestroyed, false);
    TriggerStop(gt_MiraHanDestroyed);
    TriggerEnable(gt_UpdateContractWindow, false);
    TriggerEnable(gt_AchievementNoSCVTraining, false);
    PingDestroy(gv_pingCommandCenterSW);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    auto1FE7BFD6_g = UnitGroup("Scientist", c_playerAny, RegionCircle(UnitGetPosition(EventUnitTarget()), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto1FE7BFD6_u = UnitGroupCount(auto1FE7BFD6_g, c_unitCountAll);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    auto32B93861_g = UnitGroup("Scientist", c_playerAny, RegionCircle(UnitGetPosition(EventUnitTarget()), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto32B93861_u = UnitGroupCount(auto32B93861_g, c_unitCountAll);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    auto9297DEB2_g = UnitGroup("Scientist", c_playerAny, RegionCircle(UnitGetPosition(EventUnitTarget()), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto9297DEB2_u = UnitGroupCount(auto9297DEB2_g, c_unitCountAll);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_initialOrderGiven = true;
    UnitIssueOrder(UnitFromId(4), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(369)), c_orderQueueReplace);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UnitIssueOrder(UnitFromId(4), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(2240)), c_orderQueueReplace);
    UnitIssueOrder(UnitFromId(4), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(734)), c_orderQueueAddToEnd);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UnitIssueOrder(UnitFromId(4), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(735)), c_orderQueueReplace);
    return true;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_gameOver = true;
    TriggerQueuePause(true);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_gameOver = true;
    TriggerQueuePause(true);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerEnable(gt_DefeatEscortingUnitsDead, false);
    UnitKill(UnitFromId(1132));

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


    TriggerEnable(TriggerGetCurrent(), false);
    TriggerEnable(gt_DefeatEscortingUnitsDead, false);
    UnitKill(UnitFromId(1132));
    UnitSetPropertyFixed(UnitFromId(4), c_unitPropLifePercent, 100.0);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TimerPause(gv_distractionTimer, true);
    TimerStart(gv_distractionTimer, 5.0, false, c_timeGame);

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

    GamePauseAllCooldowns(false);
    gv_missionStage1 = false;
    TriggerEnable(gt_DefeatBaseDead, true);
    TriggerExecute(gt_SwannFliesInaThor, true, false);
    TriggerExecute(gt_ObjectiveAccessBroadcastTowersCreateQ, true, false);

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

void gt_CiviliansAttackedandCower_Init () {
    gt_CiviliansAttackedandCower = TriggerCreate("gt_CiviliansAttackedandCower_Func");
    TriggerEnable(gt_CiviliansAttackedandCower, false);
    TriggerAddEventUnitDied(gt_CiviliansAttackedandCower, null);
    TriggerAddEventUnitDamaged(gt_CiviliansAttackedandCower, null, c_unitDamageTypeAny, c_unitDamageEither, EventUnitDamageEffect());

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

void gt_OdinStompsStuff_Init () {
    gt_OdinStompsStuff = TriggerCreate("gt_OdinStompsStuff_Func");
    TriggerEnable(gt_OdinStompsStuff, false);
    TriggerAddEventTimePeriodic(gt_OdinStompsStuff, 0.25, c_timeGame);
}

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerEnable(gt_SecretDocumentsRetrievedUnlockHorner05S, true);
    libNtve_gf_CreateUnitsAtPoint2(1, "SecretDocuments", 0, gv_p06_CIVILIANS, PointFromId(73));

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


    TriggerEnable(TriggerGetCurrent(), false);
    TriggerEnable(gt_SecretDocumentsRetrievedUnlockHorner05S, true);
    libNtve_gf_CreateUnitsAtPoint2(1, "SecretDocuments", 0, gv_p06_CIVILIANS, PointFromId(73));
    gv_secretDocuments = UnitLastCreated();

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_secretsFound = 1;
    UnitKill(gv_secretDocuments);

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

void gt_SecretDocumentsRetrievedUnlockHorner05S_Init () {
    gt_SecretDocumentsRetrievedUnlockHorner05S = TriggerCreate("gt_SecretDocumentsRetrievedUnlockHorner05S_Func");
    TriggerEnable(gt_SecretDocumentsRetrievedUnlockHorner05S, false);
    TriggerAddEventTimePeriodic(gt_SecretDocumentsRetrievedUnlockHorner05S, 0.25, c_timeGame);
}

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    gv_supplyDepotSCV = UnitGroupRandomUnit(UnitGroup("SCV", gv_p07_HORNERBASE, RegionFromId(18), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
    Wait(0.5, c_timeGame);

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

    SoundStop(gv_soundEmitterCheers, true);
    SoundPlayAtPoint(SoundLink("Emitter_CrowdPanic", -1), PlayerGroupAll(), Point(80.0, 80.0), 0.0, 100.0, 0.0);
    TriggerEnable(TriggerGetCurrent(), false);
    gv_sneakAttackBegun = true;
    UIClearMessages(PlayerGroupAll(), c_messageAreaDirective);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    libNtve_gf_CreateUnitsAtPoint2(1, "PickupGrenades", c_unitCreateIgnorePlacement, gv_p07_NEUTRAL, PointFromId(959));
    gv_grenades01 = UnitLastCreated();

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    libNtve_gf_CreateUnitsAtPoint2(1, "PickupPlasmaGun", c_unitCreateIgnorePlacement, gv_p07_NEUTRAL, PointFromId(16));
    UnitSetPropertyFixed(UnitLastCreated(), c_unitPropHeight, 1.0);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    libNtve_gf_CreateUnitsAtPoint2(1, "PickupRestorationCharge", c_unitCreateIgnorePlacement, gv_p07_NEUTRAL, PointFromId(409));
    UnitSetState(UnitLastCreated(), c_unitStateTooltipable, true);

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    libNtve_gf_CreateUnitsAtPoint2(1, "PickupChronoRiftDevice", 0, gv_p07_NEUTRAL, PointFromId(313));
    gv_gatlingGun2 = UnitLastCreated();

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UISetButtonHighlighted(PlayerGroupActive(), AbilityCommand("TossGrenade", 0), true);
    gv_flashButtonGrenade = true;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UISetButtonHighlighted(PlayerGroupActive(), AbilityCommand("TossGrenade", 0), false);
    return true;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UISetButtonHighlighted(PlayerGroupActive(), AbilityCommand("ExperimentalPlasmaGun", 0), true);
    gv_flashButtonPlasma = true;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UISetButtonHighlighted(PlayerGroupActive(), AbilityCommand("ExperimentalPlasmaGun", 0), false);
    return true;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UISetButtonHighlighted(PlayerGroupActive(), AbilityCommand("TheMorosDevice", 0), true);
    gv_flashButtonChronos = true;

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

    }

    TriggerEnable(TriggerGetCurrent(), false);
    UISetButtonHighlighted(PlayerGroupActive(), AbilityCommand("TheMorosDevice", 0), false);
    return true;