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
Controls Action NodeControls Reset NodeCustom Trigger NodeOn BeamNG TriggerOn Mission EndedOn Update

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 Extensionsflowgraphnodesevents

On Update

- **File:** `flowgraph/nodes/events/onUpdate.lua`

Overview

  • File: flowgraph/nodes/events/onUpdate.lua
  • Name: on Update
  • Category: logic

Core event node that triggers every frame. Provides delta time values and state enter/exit flow signals.

Pin Schema

DirTypeNameFlagsDescription
outflowenterStateimpulseOutflow when the project enters this state.
outflowflowOutflow every frame.
outflowexitStateimpulseOutflow when the project leaves this state.
outnumberdtRealhiddenReal delta time.
outnumberdtSimhiddenSimulated delta time.
outnumberdtRawhiddenRaw delta time.

Key Methods

MethodDescription
onUpdate(dtReal, dtSim, dtRaw)Called every frame. Sets flow=true, enterState/exitState=false, outputs dt values, triggers.
onStateStartedTrigger()Sets enterState=true, flow=false, dt=0, triggers.
onStateStoppedTrigger()Sets exitState=true, flow=false, dt=0, triggers.
work()No-op (event-driven).

Notes

  • This is the primary root node for most flowgraphs - the graph's onUpdateNodeId references it.
  • Auto-connect: if autoConnectResetPins preference is set, new "once" nodes get their reset pin linked to enterState.

See Also

  • Controls Action Node - Related reference
  • Controls Reset Node - Related reference
  • Custom Trigger Node - Related reference
  • FlowGraph Guide - Guide

On Mission Ended

- **File:** `flowgraph/nodes/events/onMissionEnded.lua`

Allow Walking

**File:** `flowgraph/nodes/gameplay/allowWalking.lua`

On this page

OverviewPin SchemaKey MethodsNotesSee Also