# Set Fog Falloff Over Time

Grammar — Set fog’s falloff to falloff over duration seconds
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
  • fixed — Duration

Returns — void

native void FogSetFallOffOverTime(fixed f, fixed timeRamp);

Category: Environment / Fog And Background

# Examples

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

    // Implementation
    FogSetDensityOverTime(0.2, lp_dURATION);
    FogSetFallOffOverTime(0.3, lp_dURATION);
    FogSetStartHeightOverTime(8.0, lp_dURATION);
    return true;

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

    // Implementation
    FogSetDensityOverTime(0.1, lp_dURATION);
    FogSetFallOffOverTime(0.2, lp_dURATION);
    FogSetStartHeightOverTime(0.0, lp_dURATION);
    return true;

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

    TriggerEnable(gt_DEBUGStage2, false);
    FogSetDensityOverTime(0.2, 5.0);
    FogSetFallOffOverTime(0.3, 5.0);
    FogSetStartHeightOverTime(8.0, 5.0);
    TriggerQueueEnter();

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

    TriggerEnable(TriggerGetCurrent(), false);
    FogSetDensityOverTime(0.15, 4.0);
    FogSetFallOffOverTime(0.28, 4.0);
    FogSetStartHeightOverTime(4.0, 4.0);
    return true;

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

    TriggerExecute(gt_TransmissionFlashFreezeisNearQ, true, false);
    FogSetDensityOverTime(0.125, 4.0);
    FogSetFallOffOverTime(0.24, 4.0);
    FogSetStartHeightOverTime(2.0, 4.0);
    return true;

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

    // Implementation
    FogSetDensityOverTime(0.2, lp_dURATION);
    FogSetFallOffOverTime(0.3, lp_dURATION);
    FogSetStartHeightOverTime(8.0, lp_dURATION);
    return true;

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

    // Implementation
    FogSetDensityOverTime(0.1, lp_dURATION);
    FogSetFallOffOverTime(0.2, lp_dURATION);
    FogSetStartHeightOverTime(0.0, lp_dURATION);
    return true;

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

    TriggerEnable(gt_DEBUGStage2, false);
    FogSetDensityOverTime(0.2, 5.0);
    FogSetFallOffOverTime(0.3, 5.0);
    FogSetStartHeightOverTime(8.0, 5.0);
    TriggerQueueEnter();

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

    TriggerEnable(TriggerGetCurrent(), false);
    FogSetDensityOverTime(0.15, 4.0);
    FogSetFallOffOverTime(0.28, 4.0);
    FogSetStartHeightOverTime(4.0, 4.0);
    return true;

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

    TriggerExecute(gt_TransmissionFlashFreezeisNearQ, true, false);
    FogSetDensityOverTime(0.125, 4.0);
    FogSetFallOffOverTime(0.24, 4.0);
    FogSetStartHeightOverTime(2.0, 4.0);
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3362

    FogSetColorOverTime(Color(100.00, 35.29, 16.86), 2.0);
    FogSetDensityOverTime(0.1, 2.0);
    FogSetFallOffOverTime(0.135, 2.0);
    Wait(2.0, c_timeGame);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "Reentry_Heat", c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:5848

    FogSetColorOverTime(Color(36.86, 85.88, 77.25), 4.0);
    FogSetDensityOverTime(0.02, 4.0);
    FogSetFallOffOverTime(0.135, 4.0);
    libVoiC_gf_PauseAITimeCampaign(false);
    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier01.sc2map/MapScript.galaxy:3951

    FogSetColorOverTime(Color(21.57, 34.51, 44.31), 90.0);
    FogSetDensityOverTime(0.18, 90.0);
    FogSetFallOffOverTime(0.15, 90.0);
    SoundtrackStopCurrent(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_PPurifier01_Quad", c_soundtrackCueAny, c_soundtrackIndexAny, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2mapMapScript.galaxy:3362

    FogSetColorOverTime(Color(100.00, 35.29, 16.86), 2.0);
    FogSetDensityOverTime(0.1, 2.0);
    FogSetFallOffOverTime(0.135, 2.0);
    Wait(2.0, c_timeGame);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionEntireMap(), "Reentry_Heat", c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2mapMapScript.galaxy:5848

    FogSetColorOverTime(Color(36.86, 85.88, 77.25), 4.0);
    FogSetDensityOverTime(0.02, 4.0);
    FogSetFallOffOverTime(0.135, 4.0);
    libVoiC_gf_PauseAITimeCampaign(false);
    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier01.sc2mapMapScript.galaxy:3951

    FogSetColorOverTime(Color(21.57, 34.51, 44.31), 90.0);
    FogSetDensityOverTime(0.18, 90.0);
    FogSetFallOffOverTime(0.15, 90.0);
    SoundtrackStopCurrent(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_PPurifier01_Quad", c_soundtrackCueAny, c_soundtrackIndexAny, true);