RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Directional GravityGet Cloud by IDGet FogGet GravityGet PauseGet PhotomodeGet ScatterSkyGet Time of DayPause GamePlanetRandom Time of DayBullet TimeSet Cloud by ID NodeSet Fog NodeSet Gravity NodeSet ScatterSky NodeSet Time of Day NodeSet Wind NodeSimple Planet Node

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsflowgraphnodesenvironment

Get Fog

- **File:** `extensions/flowgraph/nodes/environment/getFogDensity.lua`

Overview

  • File: extensions/flowgraph/nodes/environment/getFogDensity.lua
  • Name: Get Fog
  • Category: provider
  • Description: Returns the current fog parameters from the environment system.

Pin Schema

Input Pins

None.

Output Pins

NameTypeDescription
densitynumberThe current fog density.
densityOffsetnumberDistance from camera at which fog starts to appear.
atmosphereHeightnumberAtmospheric fog height.

Behavior

  • work(): Reads fog values from core_environment (getFogDensity, getFogDensityOffset, getFogAtmosphereHeight) and outputs them.

Legacy Pin Mapping

  • fog (input) → density

Notes

  • Provider category means it continuously outputs values without needing flow input.
  • Pairs well with Set Fog nodes for fog manipulation workflows.

Tags

#flowgraph #node #ge #environment #fog #weather


Additional Exports

  • name - string - (see source)

  • icon - string - (see source)

  • description - string - (see source)

  • pinSchema - table - (see source)

  • legacyPins - table - (see source)

  • tags - table - (see source)


See Also

  • Directional Gravity - Related reference
  • Get Cloud by ID - Related reference
  • Get Gravity - Related reference
  • FlowGraph Guide - Guide

Get Cloud by ID

- **File:** `extensions/flowgraph/nodes/environment/getCloud.lua`

Get Gravity

- **File:** `extensions/flowgraph/nodes/environment/getGravity.lua`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorLegacy Pin MappingNotesTagsAdditional ExportsSee Also