SetFogDensity

From Onset Developer Wiki
SetFogDensity

Type: Function
Context: Client
Introduced: v1.0

Description

Set the fog density for the client.

Syntax

SetFogDensity(density)

Parameters

  • density
    The fog density in float between 0.0 to 4.0. Values outside of this range will result in weird or no beheavior.

Return Value

  • __EDIT_ME__

Example

AddEvent("OnPlayerSpawn", function()
	SetFogDensity(4.0) -- Set the fog density to the heaviest
end)

See also

__EDIT_ME__