# Set Fog Color

Grammar — Set fog’s color to color
FlagsNative | Action

Sets the color of environmental fog.

# Arguments

  • color — Color

Returns — void

native void FogSetColor(color c);

Category: Environment / Fog And Background

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19952

    gf_PreloadRoomIfCondition(ge_RoomID_RoomChar, true);
    FogSetEnabled(true);
    FogSetColor(Color(67.84, 40.00, 27.84));
    FogSetFallOff(0.096);
    FogSetDensity(0.017);

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

    GameTimeOfDaySet("08:00:00");
    FogSetDensity(0.2);
    FogSetColor(Color(0,0,0));
    CreepModify(PointFromId(8), 10.0, true, true);
    CreepModify(PointFromId(9), 10.0, true, true);

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

        UnitRemove(auto2EFD0992_var);
    }
    FogSetColor(ColorWithAlpha(95.69, 20.00, 20.00, 40.00));
    FogSetDensity(0.7);
    FogSetFallOff(0.35);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:19952

    gf_PreloadRoomIfCondition(ge_RoomID_RoomChar, true);
    FogSetEnabled(true);
    FogSetColor(Color(67.84, 40.00, 27.84));
    FogSetFallOff(0.096);
    FogSetDensity(0.017);

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

    GameTimeOfDaySet("08:00:00");
    FogSetDensity(0.2);
    FogSetColor(Color(0,0,0));
    CreepModify(PointFromId(8), 10.0, true, true);
    CreepModify(PointFromId(9), 10.0, true, true);

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

        UnitRemove(auto2EFD0992_var);
    }
    FogSetColor(ColorWithAlpha(95.69, 20.00, 20.00, 40.00));
    FogSetDensity(0.7);
    FogSetFallOff(0.35);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:1352

    RegionPlayableMapSet(RegionFromId(32));
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "SnowBlizzard", "Death", "Death", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
    FogSetColor(Color(65.10, 84.31, 100.00));
    FogSetDensity(0.1);
    FogSetFallOff(0.2);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12157

    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Avernus", c_soundtrackCueAny, c_soundtrackIndexAny, true);
    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12358

    libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackground");
    libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackgroundNaturalCliffs");
    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8477

    TransmissionWait(TransmissionLastSent(), 0.0);
    GameSetLighting("Aiur", 0.0);
    FogSetColor(Color(21.18, 53.73, 29.41));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(847), 0.0, 0.0, 0.0, true);
    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00037", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8481

    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00037", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
    GameSetLighting("DesertWorld", 0.0);
    FogSetColor(Color(69.41, 59.22, 39.61));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(403), 0.0, -1, 10.0, true);
    libSwaC_gf_SendTransmissionCampaign(gv_kerrigan, "zBriefing_Lab03|Line00038", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8485

    libSwaC_gf_SendTransmissionCampaign(gv_kerrigan, "zBriefing_Lab03|Line00038", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
    GameSetLighting("Aiur", 0.0);
    FogSetColor(Color(21.18, 53.73, 29.41));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(847), 0.0, -1, 10.0, true);
    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00039", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8489

    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00039", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
    GameSetLighting("DesertWorld", 0.0);
    FogSetColor(Color(69.41, 59.22, 39.61));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(403), 0.0, -1, 10.0, true);
    libSwaC_gf_SendTransmissionCampaign(gv_kerrigan, "zBriefing_Lab03|Line00046", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8616

    CinematicOverlay(false, 0.0, "Assets\\Textures\\securitycam1.dds", 0.0, false);
    GameSetLighting("DesertWorld", 0.0);
    FogSetColor(Color(69.41, 59.22, 39.61));
    libNtve_gf_RemoveDoodadsinRegion(RegionFromId(15), null);
    auto84C1C953_g = 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/zstorychar.sc2map/MapScript.galaxy:442

    GameSetLighting("SMX1CharUI", 0.0);
    FogSetEnabled(true);
    FogSetColor(Color(50.20, 25.10, 20.39));
    FogSetDensity(0.0035);
    FogSetFallOff(0.001);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:357

    if ((libSwaC_gf_MissionStatusCheck("ZHybrid2", libSwaC_ge_MissionStatus_Completed) == true)) {
        FogSetEnabled(true);
        FogSetColor(Color(50.20, 60.00, 100.00));
        FogSetDensity(0.008);
        FogSetFallOff(0.1);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:365

    else {
        FogSetEnabled(true);
        FogSetColor(Color(60.00, 50.20, 29.80));
        FogSetDensity(0.01);
        FogSetFallOff(0.1);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2mapMapScript.galaxy:1352

    RegionPlayableMapSet(RegionFromId(32));
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "SnowBlizzard", "Death", "Death", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
    FogSetColor(Color(65.10, 84.31, 100.00));
    FogSetDensity(0.1);
    FogSetFallOff(0.2);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:12157

    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Avernus", c_soundtrackCueAny, c_soundtrackIndexAny, true);
    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:12358

    libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackground");
    libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackgroundNaturalCliffs");
    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:8477

    TransmissionWait(TransmissionLastSent(), 0.0);
    GameSetLighting("Aiur", 0.0);
    FogSetColor(Color(21.18, 53.73, 29.41));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(847), 0.0, 0.0, 0.0, true);
    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00037", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:8481

    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00037", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
    GameSetLighting("DesertWorld", 0.0);
    FogSetColor(Color(69.41, 59.22, 39.61));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(403), 0.0, -1, 10.0, true);
    libSwaC_gf_SendTransmissionCampaign(gv_kerrigan, "zBriefing_Lab03|Line00038", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:8485

    libSwaC_gf_SendTransmissionCampaign(gv_kerrigan, "zBriefing_Lab03|Line00038", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
    GameSetLighting("Aiur", 0.0);
    FogSetColor(Color(21.18, 53.73, 29.41));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(847), 0.0, -1, 10.0, true);
    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00039", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:8489

    libSwaC_gf_SendTransmissionCampaign(UnitFromId(908), "zBriefing_Lab03|Line00039", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
    GameSetLighting("DesertWorld", 0.0);
    FogSetColor(Color(69.41, 59.22, 39.61));
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(403), 0.0, -1, 10.0, true);
    libSwaC_gf_SendTransmissionCampaign(gv_kerrigan, "zBriefing_Lab03|Line00046", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:8616

    CinematicOverlay(false, 0.0, "Assets\\Textures\\securitycam1.dds", 0.0, false);
    GameSetLighting("DesertWorld", 0.0);
    FogSetColor(Color(69.41, 59.22, 39.61));
    libNtve_gf_RemoveDoodadsinRegion(RegionFromId(15), null);
    auto84C1C953_g = 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/zstorychar.sc2mapMapScript.galaxy:442

    GameSetLighting("SMX1CharUI", 0.0);
    FogSetEnabled(true);
    FogSetColor(Color(50.20, 25.10, 20.39));
    FogSetDensity(0.0035);
    FogSetFallOff(0.001);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2mapMapScript.galaxy:357

    if ((libSwaC_gf_MissionStatusCheck("ZHybrid2", libSwaC_ge_MissionStatus_Completed) == true)) {
        FogSetEnabled(true);
        FogSetColor(Color(50.20, 60.00, 100.00));
        FogSetDensity(0.008);
        FogSetFallOff(0.1);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2mapMapScript.galaxy:365

    else {
        FogSetEnabled(true);
        FogSetColor(Color(60.00, 50.20, 29.80));
        FogSetDensity(0.01);
        FogSetFallOff(0.1);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7530

        GameSetLighting("SMX1EggRoomSet", 0.0);
        FogSetEnabled(true);
        FogSetColor(Color(9.80, 14.90, 9.80));
        FogSetFallOff(0.1);
        FogSetDensity(0.03);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8826

    FogSetDisableAtUltra(true);
    FogSetEnabled(true);
    FogSetColor(Color(9.80, 14.90, 9.80));
    FogSetFallOff(0.1);
    FogSetDensity(0.03);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:374

    // Implementation
    gv_currentEnvironment = 1;
    FogSetColor(Color(17.65, 26.67, 33.73));
    FogSetStartHeight(-0.9);
    FogSetDensity(0.06);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:467

    // Implementation
    gv_currentEnvironment = 2;
    FogSetColor(Color(46.67, 52.55, 74.90));
    FogSetStartHeight(-0.5);
    FogSetDensity(0.06);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:528

    // Implementation
    gv_currentEnvironment = 3;
    FogSetColor(Color(21.18, 30.20, 39.61));
    FogSetStartHeight(4.0);
    FogSetDensity(0.35);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2mapMapScript.galaxy:374

    // Implementation
    gv_currentEnvironment = 1;
    FogSetColor(Color(17.65, 26.67, 33.73));
    FogSetStartHeight(-0.9);
    FogSetDensity(0.06);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2mapMapScript.galaxy:467

    // Implementation
    gv_currentEnvironment = 2;
    FogSetColor(Color(46.67, 52.55, 74.90));
    FogSetStartHeight(-0.5);
    FogSetDensity(0.06);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2mapMapScript.galaxy:528

    // Implementation
    gv_currentEnvironment = 3;
    FogSetColor(Color(21.18, 30.20, 39.61));
    FogSetStartHeight(4.0);
    FogSetDensity(0.35);