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
Route Distance (Flowgraph Node)Closest Road (Flowgraph Node)Custom Lua (Flowgraph Node)Distance Between (Flowgraph Node)Waypoints Distance (Flowgraph Node)File Exists (Flowgraph Node)Get First Element of Table (Flowgraph Node)Get Level Data (Flowgraph Node)Get Map Objects IDs by DynField (Flowgraph Node)Get Table Value By Key (Flowgraph Node)GHOST (Flowgraph Node)Hide Loading Screen (Flowgraph Node)Color HSV (Flowgraph Node)Line Point From Xnorm (Flowgraph Node)Load Level (Flowgraph Node)Load Project (Flowgraph Node)On Menu (Flowgraph Node)Perlin Noise (Flowgraph Node)Pop Action Map (Flowgraph Node)Get Project InfoPush Action MapRandom ColorRandom NumberRandom QuaternionRandom VectorRoad PropertiesGet Navgraph RouteRoute PositionTemplate NodeTimeTimed SequenceTo NumberTo StringWorld Editor Open

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 Extensionsflowgraphnodesutil

World Editor Open

- **Node Name:** `World Editor Open`

Overview

  • Node Name: World Editor Open
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/util/worldEditorOpen.lua

Checks whether the World Editor is currently open and provides flow outputs for open/closed states, plus impulse signals when the state transitions.

Pin Schema

Input Pins

PinTypeDescription
resetflow (impulse)Resets the impulse output pins

Output Pins

PinTypeDescription
openflowActive flow when the world editor is open
closeflowActive flow when the world editor is closed
onOpenedflow (impulse, hidden)Fires once when the editor transitions to open
onClosedflow (impulse, hidden)Fires once when the editor transitions to closed
openOrClosedbool (hidden)Boolean reflecting the open state

Internals

Key Methods

MethodDescription
reset()Sets lastState to "none" to re-enable transition detection
_executionStarted()Calls reset()
work()Checks editor.active, sets flow outputs, detects transitions

State Tracking

The node tracks self.lastState as "opened", "closed", or "none". Transition impulses (onOpened, onClosed) fire when the state changes from one to another. The reset input clears the last state to allow re-detection.

How It Works

  1. Each frame, resets onOpened and onClosed to false.
  2. Checks editor and editor.active for current editor state.
  3. Sets open/close flow pins and openOrClosed boolean accordingly.
  4. Compares current state against lastState to detect transitions.
  5. Fires onOpened or onClosed impulse on state change.
  6. Updates lastState for next frame's comparison.

Usage Example

-- Pause gameplay when editor opens:
-- Connect 'onOpened' → pause logic
-- Connect 'onClosed' → resume logic

-- Conditional flow based on editor state:
-- Connect 'open' → editor-specific UI
-- Connect 'close' → gameplay UI

-- Reset transition detection:
-- Send impulse to 'reset' input to re-fire onOpened/onClosed

Key Dependencies

  • editor.active - global editor state flag

See Also

  • Route Distance (Flowgraph Node) - Related reference
  • Closest Road (Flowgraph Node) - Related reference
  • Custom Lua (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

To String

- **Node Name:** `To String`

Load Data (Flowgraph Node)

- **Node Name:** `Load Data`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsState TrackingHow It WorksUsage ExampleKey DependenciesSee Also