Background for Skyrim SE
Member of the Cell script
voidfunctionSetFogColor(intaiNearRed, intaiNearGreen, intaiNearBlue, intaiFarRed, intaiFarGreen, intaiFarBlue)Native

Description

Wiki Description

Sets the near and far fog colors for this cell. Only works in non-sky-lit interiors.

Documentation Comment

Sets the fog color for this cell (interior, non-sky-lit cells only)


Caveats

CK Wiki - Notes

  • Cells can be configured to inherit lighting properties from a "lighting template." If a cell inherits its fog colors, then this function will have no visible effect. Data is being changed — cells have their own lighting data even if they use a template — but the cell prefers the template-side data over the cell-side data.
  • This function modifies the cell data in memory. Changes do not persist in the savegame, but are also not reverted when quitting to the main menu, starting a new game, or loading a different save file.

Parameters

intaiNearRed

CK Wiki Description

The red component of the near color, 0-255. (Clipped to 0 and 255 if above or below the values)

intaiNearGreen

CK Wiki Description

The green component of the near color, 0-255. (Clipped to 0 and 255 if above or below the values)

intaiNearBlue

CK Wiki Description

The blue component of the near color, 0-255. (Clipped to 0 and 255 if above or below the values)

intaiFarRed

CK Wiki Description

The red component of the far color, 0-255. (Clipped to 0 and 255 if above or below the values)

intaiFarGreen

CK Wiki Description

The green component of the far color, 0-255. (Clipped to 0 and 255 if above or below the values)

intaiFarBlue

CK Wiki Description

The blue component of the far color, 0-255. (Clipped to 0 and 255 if above or below the values)


Examples

; Give this cell fog with a red near color, and a blue far color
FoggyCell.SetFogColor(255, 0, 0, 0, 0, 255)

Auto-Generated Example

int myInt__aiNearRed
int myInt__aiNearGreen
int myInt__aiNearBlue
int myInt__aiFarRed
int myInt__aiFarGreen
int myInt__aiFarBlue

myCell__toCallFunctionOn.SetFogColor(myInt__aiNearRed, myInt__aiNearGreen, myInt__aiNearBlue, myInt__aiFarRed, myInt__aiFarGreen, myInt__aiFarBlue)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.