GetFogColor

Definition

double, double, double GetFogColor()

Description

This function returns the fog color as three values of red, green and blue.

Return Value

Fog color as three values of red, green and blue. Each value ranges from 0.0 to 1.0.

Example

red = 0.0
green = 0.0
blue = 0.0

function Init()
    red, green, blue = GetFogColor()

    message = string.format("\nFog color is : (%.2f, %.2f, %.2f)" , red, green, blue)
    PrintConsole(message)
end

function Update()

end
In this example, the GetFogColor function returns the value of the red, green, and blue components of the fog color. Then these three values are displayed on the console by the PrintConsole function.
adminGetFogColor