# Set Water State

Grammar — Change water to waterState|State over duration seconds, using a blendType|Type blend curve
FlagsNative | Action

Changes the water state on a map. This causes a water template to shift between its different pre-determined settings.

# Arguments

  • string<water> — Water State
  • fixed — Duration
  • int<preset::WaterBlendType> — Blend Type

Returns — void

native void WaterSetState(
	string inWater,
	fixed inDuration,
	int inMorphType,
);

Category: Environment / Terrain And Water

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:641


    gv_lowGroundIsSafe = true;
    WaterSetState("Template 1|[Default]", 4.0, c_wtcLinear);
    TriggerExecute(gt_FirstSurge, true, false);
    Wait(2.0, c_timeReal);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2790


    CameraShakeStart(gv_p01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.05, 2.0, 100.0, 3.0);
    WaterSetState("Template 1|Alternate Setting 1", 15.0, c_wtcLinear);
    GameSetLighting("TTosh01Warning", 15.0);
    Wait(2.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2871

    TriggerExecute(gt_CameraShakeDuringLava, true, false);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    WaterSetState("Template 1|Alternate Setting 2", 4.0, c_wtcLinear);
    GameSetLighting("TTosh01Eruption", 4.0);
    libNtve_gf_ClearAnimationOnDoodadsInRegion(RegionEntireMap(), "TTosh01FlameGeyser", "StandWork");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2913

    TriggerEnable(TriggerGetCurrent(), false);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    WaterSetState("Template 1|[Default]", 10.0, c_wtcLinear);
    GameSetLighting("TTosh01Normal", 10.0);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "CharAshWeather", c_animNameDefault, "Death", c_animFlagPlayForever, c_animTimeDefault);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:4857

    Wait(SoundLengthSync(SoundLink("TTosh01BriefingRaynor00003", 0)), c_timeReal);
    TriggerExecute(gt_BriefingRetreat, true, false);
    WaterSetState("Template 1|Alternate Setting 1", (SoundLengthSync(SoundLink("TTosh01BriefingTosh00001", 0)) + 0.0), c_wtcLinear);
    CameraApplyInfo(gv_p01_USER, CameraInfoFromId(56), (SoundLengthSync(SoundLink("TTosh01BriefingTosh00010", 0)) - 1.0), -1, 10, true);
    SoundPlay(SoundLink("TTosh01BriefingTosh00010", 0), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:4862

    Wait(SoundLengthSync(SoundLink("TTosh01BriefingTosh00010", 0)), c_timeReal);
    TriggerExecute(gt_CameraShakeDuringLava, true, false);
    WaterSetState("Template 1|Alternate Setting 2", 6.0, c_wtcLinear);
    CameraApplyInfo(gv_p01_USER, CameraInfoFromId(65), (SoundLengthSync(SoundLink("TTosh01BriefingTosh00005", 0)) - 0.0), -1, 10, true);
    SoundPlay(SoundLink("TTosh01BriefingTosh00005", 0), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:4889


    TriggerExecute(gt_MakeCrittersReturn, true, false);
    WaterSetState("Template 1|[Default]", 1.0, c_wtcLinear);
    Wait(4.0, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Drone", 0, gv_p04_ZERG, PointFromId(379));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:5035

    TriggerEnable(gt_LavaTurnsOFF, false);
    TriggerEnable(gt_LavaDamage, false);
    WaterSetState("Template 1|[Default]", 1.0, c_wtcLinear);
    GameSetLighting("TTosh01Normal", 1.0);
    gv_lowGroundIsSafe = true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:5240

    libNtve_gf_AddUnitGroupToUnitGroup(UnitLastCreatedGroup(), gv_victoryZergling);
    UnitGroupIssueOrder(gv_victoryZergling, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(216)), c_orderQueueReplace);
    WaterSetState("Template 1|Alternate Setting 2", 6.0, c_wtcLinear);
    GameSetLighting("TTosh01Warning", 5.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7778

    }

    WaterSetState("Template 1|Lava 2", gv__4TimeLimit, c_wtcLinear);
    TriggerExecute(gt__4LavaShakes, true, false);
    TriggerExecute(gt__4LavaSound, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:11676

    libNtve_gf_SendActorMessageToGameRegion(RegionCircle(PointFromId(2222), 14.0), "Signal DoodadDeath");
    Wait(7.4, c_timeGame);
    WaterSetState("Template 2|[Default]", 0.0, c_wtcLinear);
    WaterSetState("Template 2|Cine4 Lava", 90.0, c_wtcLinear);
    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.2, 2.5, 100.0, 4.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:11677

    Wait(7.4, c_timeGame);
    WaterSetState("Template 2|[Default]", 0.0, c_wtcLinear);
    WaterSetState("Template 2|Cine4 Lava", 90.0, c_wtcLinear);
    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.2, 2.5, 100.0, 4.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 200.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:12023

        UnitRemove(auto63FEDE8A_var);
    }
    WaterSetState("Template 1|[Default]", 0.0, c_wtcLinear);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:12125

    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.2, 2.5, 100.0, 5.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 250.0, 0.0);
    WaterSetState("Template 1|Cinematic Lava", 30.0, c_wtcLinear);
    Wait(0.5, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "TychusCommando", 0, gv_p1_USER, PointFromId(2612));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:12141

    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.4, 2.5, 100.0, 6.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 250.0, 0.0);
    WaterSetState("Template 1|Cinematic Lava", 3.0, c_wtcLinear);
    CameraApplyInfo(gv_p1_USER, CameraInfoFromId(1205), 5.0, -1, 10, true);
    Wait(1.75, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:641


    gv_lowGroundIsSafe = true;
    WaterSetState("Template 1|[Default]", 4.0, c_wtcLinear);
    TriggerExecute(gt_FirstSurge, true, false);
    Wait(2.0, c_timeReal);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:2790


    CameraShakeStart(gv_p01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.05, 2.0, 100.0, 3.0);
    WaterSetState("Template 1|Alternate Setting 1", 15.0, c_wtcLinear);
    GameSetLighting("TTosh01Warning", 15.0);
    Wait(2.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:2871

    TriggerExecute(gt_CameraShakeDuringLava, true, false);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    WaterSetState("Template 1|Alternate Setting 2", 4.0, c_wtcLinear);
    GameSetLighting("TTosh01Eruption", 4.0);
    libNtve_gf_ClearAnimationOnDoodadsInRegion(RegionEntireMap(), "TTosh01FlameGeyser", "StandWork");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:2913

    TriggerEnable(TriggerGetCurrent(), false);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    WaterSetState("Template 1|[Default]", 10.0, c_wtcLinear);
    GameSetLighting("TTosh01Normal", 10.0);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "CharAshWeather", c_animNameDefault, "Death", c_animFlagPlayForever, c_animTimeDefault);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:4857

    Wait(SoundLengthSync(SoundLink("TTosh01BriefingRaynor00003", 0)), c_timeReal);
    TriggerExecute(gt_BriefingRetreat, true, false);
    WaterSetState("Template 1|Alternate Setting 1", (SoundLengthSync(SoundLink("TTosh01BriefingTosh00001", 0)) + 0.0), c_wtcLinear);
    CameraApplyInfo(gv_p01_USER, CameraInfoFromId(56), (SoundLengthSync(SoundLink("TTosh01BriefingTosh00010", 0)) - 1.0), -1, 10, true);
    SoundPlay(SoundLink("TTosh01BriefingTosh00010", 0), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:4862

    Wait(SoundLengthSync(SoundLink("TTosh01BriefingTosh00010", 0)), c_timeReal);
    TriggerExecute(gt_CameraShakeDuringLava, true, false);
    WaterSetState("Template 1|Alternate Setting 2", 6.0, c_wtcLinear);
    CameraApplyInfo(gv_p01_USER, CameraInfoFromId(65), (SoundLengthSync(SoundLink("TTosh01BriefingTosh00005", 0)) - 0.0), -1, 10, true);
    SoundPlay(SoundLink("TTosh01BriefingTosh00005", 0), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:4889


    TriggerExecute(gt_MakeCrittersReturn, true, false);
    WaterSetState("Template 1|[Default]", 1.0, c_wtcLinear);
    Wait(4.0, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Drone", 0, gv_p04_ZERG, PointFromId(379));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:5035

    TriggerEnable(gt_LavaTurnsOFF, false);
    TriggerEnable(gt_LavaDamage, false);
    WaterSetState("Template 1|[Default]", 1.0, c_wtcLinear);
    GameSetLighting("TTosh01Normal", 1.0);
    gv_lowGroundIsSafe = true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:5240

    libNtve_gf_AddUnitGroupToUnitGroup(UnitLastCreatedGroup(), gv_victoryZergling);
    UnitGroupIssueOrder(gv_victoryZergling, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(216)), c_orderQueueReplace);
    WaterSetState("Template 1|Alternate Setting 2", 6.0, c_wtcLinear);
    GameSetLighting("TTosh01Warning", 5.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:7778

    }

    WaterSetState("Template 1|Lava 2", gv__4TimeLimit, c_wtcLinear);
    TriggerExecute(gt__4LavaShakes, true, false);
    TriggerExecute(gt__4LavaSound, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:11676

    libNtve_gf_SendActorMessageToGameRegion(RegionCircle(PointFromId(2222), 14.0), "Signal DoodadDeath");
    Wait(7.4, c_timeGame);
    WaterSetState("Template 2|[Default]", 0.0, c_wtcLinear);
    WaterSetState("Template 2|Cine4 Lava", 90.0, c_wtcLinear);
    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.2, 2.5, 100.0, 4.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:11677

    Wait(7.4, c_timeGame);
    WaterSetState("Template 2|[Default]", 0.0, c_wtcLinear);
    WaterSetState("Template 2|Cine4 Lava", 90.0, c_wtcLinear);
    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.2, 2.5, 100.0, 4.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 200.0, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:12023

        UnitRemove(auto63FEDE8A_var);
    }
    WaterSetState("Template 1|[Default]", 0.0, c_wtcLinear);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:12125

    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.2, 2.5, 100.0, 5.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 250.0, 0.0);
    WaterSetState("Template 1|Cinematic Lava", 30.0, c_wtcLinear);
    Wait(0.5, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "TychusCommando", 0, gv_p1_USER, PointFromId(2612));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:12141

    CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.4, 2.5, 100.0, 6.0);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 250.0, 0.0);
    WaterSetState("Template 1|Cinematic Lava", 3.0, c_wtcLinear);
    CameraApplyInfo(gv_p1_USER, CameraInfoFromId(1205), 5.0, -1, 10, true);
    Wait(1.75, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:420

    TriggerExecute(gt_CameraShakeDuringLava, true, false);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    WaterSetState("Template 1|Alternate Setting 2", lp_duration, c_wtcLinear);
    GameSetLighting("TTosh01Eruption", lp_duration);
    libNtve_gf_ClearAnimationOnDoodadsInRegion(RegionPlayableMap(), "TTosh01FlameGeyser", "StandWork");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:435

void gf_TurnOffLava (fixed lp_duration) {
    // Implementation
    WaterSetState("Template 1|[Default]", lp_duration, c_wtcLinear);
    GameSetLighting("TTosh01Normal", lp_duration);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "CharAshWeather", c_animNameDefault, "Death", c_animFlagPlayForever, c_animTimeDefault);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:1728

        lv_duration = 15.0;
    }
    WaterSetState("Template 1|Alternate Setting 1", lv_duration, c_wtcLinear);
    GameSetLighting("TTosh01Warning", lv_duration);
    Wait(2.0, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:4291

    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_hunterIntroLarvaRisingSound = SoundLastPlayed();
    WaterSetState("Template 1|Alternate Setting 1", 6.0, c_wtcLinear);
    GameSetLighting("TTosh01Warning", 6.0);
    libSwaC_gf_SendTransmissionCampaign(null, "zEvoBriefing_Baneling|Line00018", c_transmissionDurationAdd, 0.0, false, 1, 0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:4298

    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_hunterIntroLarvaRisingSound = SoundLastPlayed();
    WaterSetState("Template 1|Alternate Setting 2", 4.0, c_wtcLinear);
    GameSetLighting("TTosh01Eruption", 4.0);
    UnitGroupLoopBegin(UnitGroup("Baneling", c_playerAny, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:3231

    SoundPlay(SoundLink("FX_RoachEvo_PoolShrinkage", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_poolShinkageSound = SoundLastPlayed();
    WaterSetState("PortZion|Alternate Setting", 10.0, c_wtcLinear);
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(153), 10.0, -1, 10.0, true);
    UnitGroupLoopBegin(UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:3363

    libSwaC_gf_HidePlanetPortrait();
    WaterPause("PortZion", true);
    WaterSetState("PortZion|Alternate Setting 2", 0.0, c_wtcLinear);
    VisExploreArea(gv_pLAYER_01_USER, RegionEntireMap(), false, false);
    SoundStop(gv_poolShinkageSound, true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3820

    auto0223D84C_val = lv_index;
    if (auto0223D84C_val == 1) {
        WaterSetState("ZerusPool|Alternate Setting", 2.0, c_wtcSquareRoot);
    }
    else if (auto0223D84C_val == 2) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3823

    }
    else if (auto0223D84C_val == 2) {
        WaterSetState("Xil|Alternate Setting", 2.0, c_wtcLinear);
    }
    else if (auto0223D84C_val == 3) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3826

    }
    else if (auto0223D84C_val == 3) {
        WaterSetState("ZhakulDas|Alternate Setting", 2.0, c_wtcLinear);
    }
    else {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:1643

            Wait(0.5, c_timeGame);
        }
        WaterSetState("VespeneLavaWater|[Default]", gv_coreOn_DURATION, c_wtcLinear);
        libA3DDD02B_gf_ShowHideProgressBar(false);
        TimerStart(gv_mainTimer, gv_coreOn_DURATION, false, c_timeAI);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:1713

        TimerStart(gv_eruptionTimer, gv_eruptionRelapseTime, false, c_timeGame);
        if ((gv_eruptionsTriggered == 1)) {
            WaterSetState("VespeneLavaWater|Alternate Setting", lv_waterTransitionTime, c_wtcLinear);
        }
        else if ((gv_eruptionsTriggered == 2)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:1716

        }
        else if ((gv_eruptionsTriggered == 2)) {
            WaterSetState("VespeneLavaWater|Alternate Setting 2", lv_waterTransitionTime, c_wtcLinear);
            if ((gv_coreOnCycle <= 7)) {
                gv_activeRegion = RegionFromName(("Fissure " + IntToString((gv_coreOnCycle + 1))));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:1739

        SoundPlay(SoundLink("Prologue_Vespene_Crack_Rumble_2D", -1), PlayerGroupAll(), 100.0, 0.0);
        SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 100.0, 0.0);
        WaterSetState("VespeneLavaWater|Alternate Setting 3", lv_waterTransitionTime, c_wtcLinear);
    }
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:3346

    SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 100.0, 0.0);
    CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.1, 1.0, 100.0, 3.0);
    WaterSetState("VespeneLavaWater|Alternate Setting 2", 2.7, c_wtcExponential);
    TransmissionWait(TransmissionLastSent(), 0.0);
    CinematicFade(false, 1.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:3349

    TransmissionWait(TransmissionLastSent(), 0.0);
    CinematicFade(false, 1.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);
    WaterSetState("VespeneLavaWater|Alternate Setting", 0.0, c_wtcExponential);
    SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 120.0, 0.0);
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(348), 0.0, -1, 10, true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:3357

    Wait(3.0, c_timeGame);
    CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.1, 1.0, 100.0, 3.0);
    WaterSetState("VespeneLavaWater|Alternate Setting 3", 3.0, c_wtcExponential);
    SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 100.0, 0.0);
    Wait(2.5, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:3496

        TerrainShowRegion(RegionFromId(1), false);
    }
    WaterSetState("VespeneLavaWater|[Default]", 0.0, c_wtcLinear);
    libNtve_gf_SendActorMessageToGameRegion(RegionEntireMap(), "Signal GasOff");
    UnitSetPropertyFixed(UnitFromId(279), c_unitPropResources, gv_introMinerals[1]);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:420

    TriggerExecute(gt_CameraShakeDuringLava, true, false);
    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    WaterSetState("Template 1|Alternate Setting 2", lp_duration, c_wtcLinear);
    GameSetLighting("TTosh01Eruption", lp_duration);
    libNtve_gf_ClearAnimationOnDoodadsInRegion(RegionPlayableMap(), "TTosh01FlameGeyser", "StandWork");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:435

void gf_TurnOffLava (fixed lp_duration) {
    // Implementation
    WaterSetState("Template 1|[Default]", lp_duration, c_wtcLinear);
    GameSetLighting("TTosh01Normal", lp_duration);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "CharAshWeather", c_animNameDefault, "Death", c_animFlagPlayForever, c_animTimeDefault);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:1728

        lv_duration = 15.0;
    }
    WaterSetState("Template 1|Alternate Setting 1", lv_duration, c_wtcLinear);
    GameSetLighting("TTosh01Warning", lv_duration);
    Wait(2.0, c_timeGame);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:4291

    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_hunterIntroLarvaRisingSound = SoundLastPlayed();
    WaterSetState("Template 1|Alternate Setting 1", 6.0, c_wtcLinear);
    GameSetLighting("TTosh01Warning", 6.0);
    libSwaC_gf_SendTransmissionCampaign(null, "zEvoBriefing_Baneling|Line00018", c_transmissionDurationAdd, 0.0, false, 1, 0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:4298

    SoundPlay(SoundLink("TUILavaRising", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_hunterIntroLarvaRisingSound = SoundLastPlayed();
    WaterSetState("Template 1|Alternate Setting 2", 4.0, c_wtcLinear);
    GameSetLighting("TTosh01Eruption", 4.0);
    UnitGroupLoopBegin(UnitGroup("Baneling", c_playerAny, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:3231

    SoundPlay(SoundLink("FX_RoachEvo_PoolShrinkage", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_poolShinkageSound = SoundLastPlayed();
    WaterSetState("PortZion|Alternate Setting", 10.0, c_wtcLinear);
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(153), 10.0, -1, 10.0, true);
    UnitGroupLoopBegin(UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:3363

    libSwaC_gf_HidePlanetPortrait();
    WaterPause("PortZion", true);
    WaterSetState("PortZion|Alternate Setting 2", 0.0, c_wtcLinear);
    VisExploreArea(gv_pLAYER_01_USER, RegionEntireMap(), false, false);
    SoundStop(gv_poolShinkageSound, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:3820

    auto0223D84C_val = lv_index;
    if (auto0223D84C_val == 1) {
        WaterSetState("ZerusPool|Alternate Setting", 2.0, c_wtcSquareRoot);
    }
    else if (auto0223D84C_val == 2) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:3823

    }
    else if (auto0223D84C_val == 2) {
        WaterSetState("Xil|Alternate Setting", 2.0, c_wtcLinear);
    }
    else if (auto0223D84C_val == 3) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:3826

    }
    else if (auto0223D84C_val == 3) {
        WaterSetState("ZhakulDas|Alternate Setting", 2.0, c_wtcLinear);
    }
    else {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:1643

            Wait(0.5, c_timeGame);
        }
        WaterSetState("VespeneLavaWater|[Default]", gv_coreOn_DURATION, c_wtcLinear);
        libA3DDD02B_gf_ShowHideProgressBar(false);
        TimerStart(gv_mainTimer, gv_coreOn_DURATION, false, c_timeAI);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:1713

        TimerStart(gv_eruptionTimer, gv_eruptionRelapseTime, false, c_timeGame);
        if ((gv_eruptionsTriggered == 1)) {
            WaterSetState("VespeneLavaWater|Alternate Setting", lv_waterTransitionTime, c_wtcLinear);
        }
        else if ((gv_eruptionsTriggered == 2)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:1716

        }
        else if ((gv_eruptionsTriggered == 2)) {
            WaterSetState("VespeneLavaWater|Alternate Setting 2", lv_waterTransitionTime, c_wtcLinear);
            if ((gv_coreOnCycle <= 7)) {
                gv_activeRegion = RegionFromName(("Fissure " + IntToString((gv_coreOnCycle + 1))));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:1739

        SoundPlay(SoundLink("Prologue_Vespene_Crack_Rumble_2D", -1), PlayerGroupAll(), 100.0, 0.0);
        SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 100.0, 0.0);
        WaterSetState("VespeneLavaWater|Alternate Setting 3", lv_waterTransitionTime, c_wtcLinear);
    }
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:3346

    SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 100.0, 0.0);
    CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.1, 1.0, 100.0, 3.0);
    WaterSetState("VespeneLavaWater|Alternate Setting 2", 2.7, c_wtcExponential);
    TransmissionWait(TransmissionLastSent(), 0.0);
    CinematicFade(false, 1.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:3349

    TransmissionWait(TransmissionLastSent(), 0.0);
    CinematicFade(false, 1.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);
    WaterSetState("VespeneLavaWater|Alternate Setting", 0.0, c_wtcExponential);
    SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 120.0, 0.0);
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(348), 0.0, -1, 10, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:3357

    Wait(3.0, c_timeGame);
    CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.1, 1.0, 100.0, 3.0);
    WaterSetState("VespeneLavaWater|Alternate Setting 3", 3.0, c_wtcExponential);
    SoundPlay(SoundLink("Prologue_Volcanic_Rumble_Swells", -1), PlayerGroupAll(), 100.0, 0.0);
    Wait(2.5, c_timeGame);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:3496

        TerrainShowRegion(RegionFromId(1), false);
    }
    WaterSetState("VespeneLavaWater|[Default]", 0.0, c_wtcLinear);
    libNtve_gf_SendActorMessageToGameRegion(RegionEntireMap(), "Signal GasOff");
    UnitSetPropertyFixed(UnitFromId(279), c_unitPropResources, gv_introMinerals[1]);