# Set Fog Falloff

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

Sets the falloff for environmental fog. Falloff determines how far from the fog start height the environmental fog will extend.

# Arguments

  • fixed — Falloff

Returns — void

native void FogSetFallOff(fixed f);

Category: Environment / Fog And Background

# Examples

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

    FogSetEnabled(true);
    FogSetColor(Color(67.84, 40.00, 27.84));
    FogSetFallOff(0.096);
    FogSetDensity(0.017);
    FogSetStartHeight(-5.904);

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

    FogSetColor(ColorWithAlpha(95.69, 20.00, 20.00, 40.00));
    FogSetDensity(0.7);
    FogSetFallOff(0.35);
    FogSetStartHeight((gv__4HeightOfLava - 7.0));
    UnitClearSelection(gv_p1_USER);

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

    FogSetEnabled(true);
    FogSetColor(Color(67.84, 40.00, 27.84));
    FogSetFallOff(0.096);
    FogSetDensity(0.017);
    FogSetStartHeight(-5.904);

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

    FogSetColor(ColorWithAlpha(95.69, 20.00, 20.00, 40.00));
    FogSetDensity(0.7);
    FogSetFallOff(0.35);
    FogSetStartHeight((gv__4HeightOfLava - 7.0));
    UnitClearSelection(gv_p1_USER);

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

    FogSetColor(Color(65.10, 84.31, 100.00));
    FogSetDensity(0.1);
    FogSetFallOff(0.2);
    FogSetStartHeight(0.0);
    VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(14));

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

    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);
    FogSetStartHeight(-4.0);
    FogSetEnabled(true);

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

    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);
    FogSetStartHeight(-4.0);
    ObjectiveShow(gv_objectiveDestroyDominionBase222, PlayerGroupAll(), false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstorychar.sc2map/MapScript.galaxy:444

    FogSetColor(Color(50.20, 25.10, 20.39));
    FogSetDensity(0.0035);
    FogSetFallOff(0.001);
    FogSetStartHeight(0.0);
    return true;

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

        FogSetColor(Color(50.20, 60.00, 100.00));
        FogSetDensity(0.008);
        FogSetFallOff(0.1);
        FogSetStartHeight(0.0);
        GameSetLighting("SMX1MobiusNightUI", 0.0);

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

        FogSetColor(Color(60.00, 50.20, 29.80));
        FogSetDensity(0.01);
        FogSetFallOff(0.1);
        FogSetStartHeight(0.0);
        GameSetLighting("SMX1MobiusDuskUI", 0.0);

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

    FogSetColor(Color(65.10, 84.31, 100.00));
    FogSetDensity(0.1);
    FogSetFallOff(0.2);
    FogSetStartHeight(0.0);
    VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(14));

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

    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);
    FogSetStartHeight(-4.0);
    FogSetEnabled(true);

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

    FogSetColor(Color(86.67, 78.04, 65.10));
    FogSetDensity(0.07);
    FogSetFallOff(0.12);
    FogSetStartHeight(-4.0);
    ObjectiveShow(gv_objectiveDestroyDominionBase222, PlayerGroupAll(), false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstorychar.sc2mapMapScript.galaxy:444

    FogSetColor(Color(50.20, 25.10, 20.39));
    FogSetDensity(0.0035);
    FogSetFallOff(0.001);
    FogSetStartHeight(0.0);
    return true;

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

        FogSetColor(Color(50.20, 60.00, 100.00));
        FogSetDensity(0.008);
        FogSetFallOff(0.1);
        FogSetStartHeight(0.0);
        GameSetLighting("SMX1MobiusNightUI", 0.0);

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

        FogSetColor(Color(60.00, 50.20, 29.80));
        FogSetDensity(0.01);
        FogSetFallOff(0.1);
        FogSetStartHeight(0.0);
        GameSetLighting("SMX1MobiusDuskUI", 0.0);

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

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

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

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

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

    FogSetStartHeight(-0.9);
    FogSetDensity(0.06);
    FogSetFallOff(0.2);
    GameSetLighting("Aiur4City", 0.0);
    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);

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

    FogSetStartHeight(-0.5);
    FogSetDensity(0.06);
    FogSetFallOff(0.2);
    GameSetLighting("Aiur4City", 0.0);
    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);

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

    FogSetStartHeight(4.0);
    FogSetDensity(0.35);
    FogSetFallOff(0.4);
    GameSetLighting("Aiur4Temple", 0.0);
    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);

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

    FogSetStartHeight(-0.9);
    FogSetDensity(0.06);
    FogSetFallOff(0.2);
    GameSetLighting("Aiur4City", 0.0);
    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);

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

    FogSetStartHeight(-0.5);
    FogSetDensity(0.06);
    FogSetFallOff(0.2);
    GameSetLighting("Aiur4City", 0.0);
    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);

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

    FogSetStartHeight(4.0);
    FogSetDensity(0.35);
    FogSetFallOff(0.4);
    GameSetLighting("Aiur4Temple", 0.0);
    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);