IsSkyFogEnabled

Definition

bool IsSkyFogEnabled()

Description

This function determines whether the sky fog is enabled or not.

Return Value

If sky fog is enabled, it returns true, otherwise it returns false.

Example

skyFog = false
message = ""

function Init()
    skyFog = IsSkyFogEnabled()

    if skyFog then
          message = string.format("\nSky fog is ON")
    else
          message = string.format("\nSky fog is OFF")
    end

    PrintConsole(message)
end

function Update()

end
First, we determines whether the sky fog is enabled or not. Then we display sky fog status in the console using the PrintConsole function.
adminIsSkyFogEnabled