API ReferenceGE Extensionsflowgraphnodesenvironment
Get Time of Day
- **File:** `extensions/flowgraph/nodes/environment/getTimeOfDay.lua`
Overview
- File:
extensions/flowgraph/nodes/environment/getTimeOfDay.lua - Name:
Get Time of Day - Category:
provider - Description: Returns the current Time of Day settings from the environment system.
Pin Schema
Input Pins
None.
Output Pins
| Name | Type | Description |
|---|---|---|
time | number | Time of day on a 0–1 scale. 0/1 = midnight, 0.5 = midday. |
dayScale | number | Scalar applied to time that elapses while the sun is up. |
nightScale | number | Scalar applied to time that elapses while the sun is down. |
dayLength | number | Length of a full day in real-world seconds. |
azimuthOverride | number | Fixed azimuth angle that stays constant throughout the day cycle. |
Behavior
- work(): Calls
core_environment.getTimeOfDay()and outputs all fields from the returned table.
Notes
- The
timevalue uses BeamNG's convention: 0 and 1 are midnight, 0.5 is noon. - Provider category - continuously outputs without needing flow input.
- Pairs with Set Time of Day for time manipulation workflows.
Tags
#flowgraph #node #ge #environment #timeofday #tod
Additional Exports
-
name-string- (see source) -
icon-string- (see source) -
description-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- Directional Gravity - Related reference
- Get Cloud by ID - Related reference
- Get Fog - Related reference
- FlowGraph Guide - Guide