SetHeightFogDensity

From Onset Developer Wiki
Revision as of 17:40, 11 February 2021 by BlueMountains (talk | contribs) (Created page with "{{Info|Function|Client|1.4.3}} {{FuncDescription|Set global fog density multiplier.}} {{FuncSyntax|SetHeightFogDensity(density)}} {{FuncParameters}} {{FuncParam|density|The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetHeightFogDensity

Type: Function
Context: Client
Introduced: v1.4.3

Description

Set global fog density multiplier.

Syntax

SetHeightFogDensity(density)

Parameters

  • density
    The fog density multiplier, default: 1.0

Return Value

  • Returns true.

Example

AddEvent("OnPlayerSpawn", function()
	SetHeightFogDensity(0.0) -- Disable fog
end)

See also