Workshop.codes
Create

Set Fog Density Last updated May 01, 2026

Description

Adjusts the density of the map's environmental fog for a specified audience, from 0 (no fog) to 100 (maximum visibility reduction). Does not affect gameplay or collision. Useful for creating horror atmospheres, simulating weather conditions, or reducing effective sightlines for asymmetric game modes.

Snippet

Set Fog Density(All Players, 60);

Properties

Returns: Void
Parameters: Visible To, Density

Visible To
Type: Player, Default: All Players
The players for whom the fog density will be changed.

Density
Type: Number, Default: 0
The fog density value from 0 to 100. 0 disables fog entirely.

Workshop.codes