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 Gravity Node

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

Overview

  • File: flowgraph/nodes/environment/setGravity.lua
  • Name: Set Gravity
  • Category: dynamic_instant

Sets the global gravity. Stores and restores original gravity on execution start/stop.

Pin Schema

DirTypeNameDefaultDescription
innumbervalue0Gravity in m/s². Hardcoded by default.

Tags

environment

Data Properties

PropertyDefaultDescription
restoreGravitytrueRestore gravity on execution stop.

Key Methods

MethodDescription
workOnce()Sets gravity via core_environment.setGravity().
work()In repeat mode, sets gravity when pin is used.
_executionStarted()Stores current gravity.
_executionStopped()Restores original gravity if enabled.

API Calls

  • core_environment.setGravity(value)
  • core_environment.getGravity()

See Also

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

Set Fog Node

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

Set ScatterSky Node

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

On this page

OverviewPin SchemaTagsData PropertiesKey MethodsAPI CallsSee Also