# Set Fog Color Over Time
Grammar — Set fog’s color to color over duration seconds
Flags —Native|Action
Sets the color of environmental fog.
# Arguments
color— Colorfixed— Duration
Returns — void
native void FogSetColorOverTime(color c, fixed timeRamp);
# 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/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3360
}
GameSetLighting("KorhalPlatformEx2_Fire", 4.0);
FogSetColorOverTime(Color(100.00, 35.29, 16.86), 2.0);
FogSetDensityOverTime(0.1, 2.0);
FogSetFallOffOverTime(0.135, 2.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:5846
TriggerExecute(gt_VictoryMusic, true, false);
GameSetLighting("KorhalPlatformEx2", 4.0);
FogSetColorOverTime(Color(36.86, 85.88, 77.25), 4.0);
FogSetDensityOverTime(0.02, 4.0);
FogSetFallOffOverTime(0.135, 4.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier01.sc2map/MapScript.galaxy:3949
libVCMI_gf_SendActorMessageToDoodadsInRegion("SetVisibility", "RainSprinkle", RegionEntireMap());
GameSetLighting("ProtossBaseDay", 90.0);
FogSetColorOverTime(Color(21.57, 34.51, 44.31), 90.0);
FogSetDensityOverTime(0.18, 90.0);
FogSetFallOffOverTime(0.15, 90.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:3360
}
GameSetLighting("KorhalPlatformEx2_Fire", 4.0);
FogSetColorOverTime(Color(100.00, 35.29, 16.86), 2.0);
FogSetDensityOverTime(0.1, 2.0);
FogSetFallOffOverTime(0.135, 2.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:5846
TriggerExecute(gt_VictoryMusic, true, false);
GameSetLighting("KorhalPlatformEx2", 4.0);
FogSetColorOverTime(Color(36.86, 85.88, 77.25), 4.0);
FogSetDensityOverTime(0.02, 4.0);
FogSetFallOffOverTime(0.135, 4.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier01.sc2map — MapScript.galaxy:3949
libVCMI_gf_SendActorMessageToDoodadsInRegion("SetVisibility", "RainSprinkle", RegionEntireMap());
GameSetLighting("ProtossBaseDay", 90.0);
FogSetColorOverTime(Color(21.57, 34.51, 44.31), 90.0);
FogSetDensityOverTime(0.18, 90.0);
FogSetFallOffOverTime(0.15, 90.0);