# Set Fog Density Over Time
Grammar — Set fog’s density to density over duration seconds
Flags —Native
|Action
Sets the density of environmental fog. A higher value means thicker fog.
# Arguments
fixed
— Densityfixed
— Duration
Returns — void
native void FogSetDensityOverTime(fixed d, fixed timeRamp);
# Related
Category: Environment / Fog And Background
- [F] —
void
— Enable/Disable Fog — ( FogSetEnabled ) - [F] —
void
— Enable/Disable Fog At Ultra — ( FogSetDisableAtUltra ) - [F] —
void
— Set Fog Density — ( FogSetDensity ) - [F] —
void
— Set Fog Color — ( FogSetColor ) - [F] —
void
— Set Fog Falloff — ( FogSetFallOff ) - [F] —
void
— Set Fog Start Height — ( FogSetStartHeight ) - [F] —
void
— Set Fog Density Over Time — ( FogSetDensityOverTime ) - [F] —
void
— Set Fog Color Over Time — ( FogSetColorOverTime ) - [F] —
void
— Set Fog Falloff Over Time — ( FogSetFallOffOverTime ) - [F] —
void
— Set Fog Start Height Over Time — ( FogSetStartHeightOverTime ) - [F] —
void
— Set Background Model — ( GameSetBackground )
# Examples
# campaigns/swarm.sc2campaign
// L603
FogSetDensityOverTime(0.2, lp_dURATION)
// L627
FogSetDensityOverTime(0.1, lp_dURATION)
// L2435
FogSetDensityOverTime(0.2, 5.0)
// L2503
FogSetDensityOverTime(0.0, 12.0)
// L5443
FogSetDensityOverTime(0.15, 4.0)
// L5490
FogSetDensityOverTime(0.125, 4.0)
// L603
FogSetDensityOverTime(0.2, lp_dURATION)
// L627
FogSetDensityOverTime(0.1, lp_dURATION)
// L2435
FogSetDensityOverTime(0.2, 5.0)
// L2503
FogSetDensityOverTime(0.0, 12.0)
// L5443
FogSetDensityOverTime(0.15, 4.0)
// L5490
FogSetDensityOverTime(0.125, 4.0)
// L3361
FogSetDensityOverTime(0.1, 2.0)
// L5847
FogSetDensityOverTime(0.02, 4.0)
// L3950
FogSetDensityOverTime(0.18, 90.0)
// L3361
FogSetDensityOverTime(0.1, 2.0)
// L5847
FogSetDensityOverTime(0.02, 4.0)
// L3950
FogSetDensityOverTime(0.18, 90.0)