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

Set Time of Day Node

- **File:** `flowgraph/nodes/environment/setTimeOfDay.lua`

Overview

  • File: flowgraph/nodes/environment/setTimeOfDay.lua
  • Name: Set Time of Day
  • Category: dynamic_instant
  • Icon: simobject_timeofday

Sets the current Time of Day settings.

Pin Schema

DirTypeNameFlagsDescription
inflowflowInflow for this node.
innumbertimeTime of day (0-1). 0/1 = midday, 0.5 = midnight.
inboolplayPlay or pause the ToD progression.
innumberdayScalehiddenScalar for time while sun is up.
innumbernightScalehiddenScalar for time while sun is down.
innumberdayLengthhiddenLength of day in real-world seconds.
innumberazimuthOverridehiddenConstant azimuth override for day cycle.

Tags

environment, tod

Hard Templates (time pin)

LabelValue
Midday0
Evening0.25
Midnight0.5
Morning0.75

Data Properties

PropertyDefaultDescription
restoreTodtrueRestore ToD on stop (currently commented out).

Key Methods

MethodDescription
setTimeOfDay()Sets mission module todChanged flag and calls core_environment.setTimeOfDay() with all parameters.
workOnce()Calls setTimeOfDay().
work()In repeat mode, calls setTimeOfDay() every frame.

See Also

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

Set ScatterSky Node

- **File:** `flowgraph/nodes/environment/setScatterSky.lua`

Set Wind Node

- **File:** `flowgraph/nodes/environment/setWind.lua`

On this page

OverviewPin SchemaTagsHard Templates (time pin)Data PropertiesKey MethodsSee Also