# Set Fog Start Height
Grammar — Set fog’s start height to startHeight
Flags —Native
|Action
Sets the start height for environmental fog. Anything below this height will be completely obscured by environmental fog.
# Arguments
fixed
— Start Height
Returns — void
native void FogSetStartHeight(fixed h);
# Related
Category: Environment / Fog And Background
- Enable/Disable Fog —
void
— FogSetEnabled - Enable/Disable Fog At Ultra —
void
— FogSetDisableAtUltra - Set Fog Density —
void
— FogSetDensity - Set Fog Color —
void
— FogSetColor - Set Fog Falloff —
void
— FogSetFallOff - Set Fog Start Height —
void
— FogSetStartHeight - Set Fog Density Over Time —
void
— FogSetDensityOverTime - Set Fog Color Over Time —
void
— FogSetColorOverTime - Set Fog Falloff Over Time —
void
— FogSetFallOffOverTime - Set Fog Start Height Over Time —
void
— FogSetStartHeightOverTime - Set Background Model —
void
— GameSetBackground
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:19955
FogSetFallOff(0.096);
FogSetDensity(0.017);
FogSetStartHeight(-5.904);
GameSetLighting("SMCharBattlefield", 0.0);
GameSetBackground(c_backgroundFixed, null, 100.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7549
FogSetDensity(0.7);
FogSetFallOff(0.35);
FogSetStartHeight((gv__4HeightOfLava - 7.0));
UnitClearSelection(gv_p1_USER);
UnitGroupSelect(UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), gv_p1_USER, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7915
lv_lavaIncrement = (10.0 / lv_lavaIncrement);
gv__4HeightOfLava = (gv__4HeightOfLava + lv_lavaIncrement);
FogSetStartHeight((gv__4HeightOfLava - 7.0));
autoD60EF79C_g = UnitGroup(null, c_playerAny, RegionFromId(34), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoD60EF79C_u = UnitGroupCount(autoD60EF79C_g, c_unitCountAll);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:12006
PlayerSetState(gv_p1_USER, c_playerStateXPGain, false);
GameTimeOfDayPause(true);
FogSetStartHeight(2.0);
UnitPauseAll(true);
gv_cinematicHiddenUnitGroup = UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, 0), 0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:19955
FogSetFallOff(0.096);
FogSetDensity(0.017);
FogSetStartHeight(-5.904);
GameSetLighting("SMCharBattlefield", 0.0);
GameSetBackground(c_backgroundFixed, null, 100.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7549
FogSetDensity(0.7);
FogSetFallOff(0.35);
FogSetStartHeight((gv__4HeightOfLava - 7.0));
UnitClearSelection(gv_p1_USER);
UnitGroupSelect(UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), gv_p1_USER, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7915
lv_lavaIncrement = (10.0 / lv_lavaIncrement);
gv__4HeightOfLava = (gv__4HeightOfLava + lv_lavaIncrement);
FogSetStartHeight((gv__4HeightOfLava - 7.0));
autoD60EF79C_g = UnitGroup(null, c_playerAny, RegionFromId(34), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoD60EF79C_u = UnitGroupCount(autoD60EF79C_g, c_unitCountAll);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:12006
PlayerSetState(gv_p1_USER, c_playerStateXPGain, false);
GameTimeOfDayPause(true);
FogSetStartHeight(2.0);
UnitPauseAll(true);
gv_cinematicHiddenUnitGroup = UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, 0), 0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:1355
FogSetDensity(0.1);
FogSetFallOff(0.2);
FogSetStartHeight(0.0);
VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(14));
gv_startingVision = VisRevealerLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12160
FogSetDensity(0.07);
FogSetFallOff(0.12);
FogSetStartHeight(-4.0);
FogSetEnabled(true);
UnitPauseAll(true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12361
FogSetDensity(0.07);
FogSetFallOff(0.12);
FogSetStartHeight(-4.0);
ObjectiveShow(gv_objectiveDestroyDominionBase222, PlayerGroupAll(), false);
RegionPlayableMapSet(RegionFromId(60));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zstorychar.sc2map/MapScript.galaxy:445
FogSetDensity(0.0035);
FogSetFallOff(0.001);
FogSetStartHeight(0.0);
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:360
FogSetDensity(0.008);
FogSetFallOff(0.1);
FogSetStartHeight(0.0);
GameSetLighting("SMX1MobiusNightUI", 0.0);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:368
FogSetDensity(0.01);
FogSetFallOff(0.1);
FogSetStartHeight(0.0);
GameSetLighting("SMX1MobiusDuskUI", 0.0);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:1355
FogSetDensity(0.1);
FogSetFallOff(0.2);
FogSetStartHeight(0.0);
VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(14));
gv_startingVision = VisRevealerLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12160
FogSetDensity(0.07);
FogSetFallOff(0.12);
FogSetStartHeight(-4.0);
FogSetEnabled(true);
UnitPauseAll(true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12361
FogSetDensity(0.07);
FogSetFallOff(0.12);
FogSetStartHeight(-4.0);
ObjectiveShow(gv_objectiveDestroyDominionBase222, PlayerGroupAll(), false);
RegionPlayableMapSet(RegionFromId(60));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstorychar.sc2map — MapScript.galaxy:445
FogSetDensity(0.0035);
FogSetFallOff(0.001);
FogSetStartHeight(0.0);
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map — MapScript.galaxy:360
FogSetDensity(0.008);
FogSetFallOff(0.1);
FogSetStartHeight(0.0);
GameSetLighting("SMX1MobiusNightUI", 0.0);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map — MapScript.galaxy:368
FogSetDensity(0.01);
FogSetFallOff(0.1);
FogSetStartHeight(0.0);
GameSetLighting("SMX1MobiusDuskUI", 0.0);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7533
FogSetFallOff(0.1);
FogSetDensity(0.03);
FogSetStartHeight(0.0);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8829
FogSetFallOff(0.1);
FogSetDensity(0.03);
FogSetStartHeight(0.0);
EnvironmentShow(c_environmentAll, false);
SoundSetReverb("Reverb_EggRoom", 1.0, true, true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:375
gv_currentEnvironment = 1;
FogSetColor(Color(17.65, 26.67, 33.73));
FogSetStartHeight(-0.9);
FogSetDensity(0.06);
FogSetFallOff(0.2);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:468
gv_currentEnvironment = 2;
FogSetColor(Color(46.67, 52.55, 74.90));
FogSetStartHeight(-0.5);
FogSetDensity(0.06);
FogSetFallOff(0.2);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:529
gv_currentEnvironment = 3;
FogSetColor(Color(21.18, 30.20, 39.61));
FogSetStartHeight(4.0);
FogSetDensity(0.35);
FogSetFallOff(0.4);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:375
gv_currentEnvironment = 1;
FogSetColor(Color(17.65, 26.67, 33.73));
FogSetStartHeight(-0.9);
FogSetDensity(0.06);
FogSetFallOff(0.2);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:468
gv_currentEnvironment = 2;
FogSetColor(Color(46.67, 52.55, 74.90));
FogSetStartHeight(-0.5);
FogSetDensity(0.06);
FogSetFallOff(0.2);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:529
gv_currentEnvironment = 3;
FogSetColor(Color(21.18, 30.20, 39.61));
FogSetStartHeight(4.0);
FogSetDensity(0.35);
FogSetFallOff(0.4);