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

Load Project (Flowgraph Node)

- **Node Name:** `Load Project`

Overview

  • Node Name: Load Project
  • Category: once_p_duration
  • File: extensions/flowgraph/nodes/util/loadProject.lua

Loads and executes another flowgraph project by file path. Paths are relative to flowgraphEditor/, and the .flow.json extension can be omitted.

Pin Schema

Input Pins

PinTypeDescription
filepathstringFile path to the flowgraph project to load
startNextFrameboolIf true, starts the project next frame; if false, starts immediately

Internals

Key Methods

MethodDescription
init(mgr)Sets destroyTargetOnStop to true, initializes target reference
postInit()Configures file picker to accept .flow.json files
_executionStopped()Stops and removes the loaded project if destroyTargetOnStop is set
workOnce()Resolves the file path, loads the manager, and starts it

Node Data Properties

PropertyDefaultDescription
destroyTargetOnStoptrueAutomatically destroy the loaded project when this node's flowgraph stops

Path Resolution

The node tries three path variants in order:

  1. filepath as-is
  2. filepath + .flow.json
  3. flowgraphEditor/ + filepath + .flow.json

How It Works

  1. Resolves the input filepath using mgr:getRelativeAbsolutePath() with three fallback patterns.
  2. Calls core_flowgraphManager.loadManager(file) to load the project.
  3. Either starts it immediately (mgr:setRunning(true)) or defers to next frame (core_flowgraphManager.startNextFrame(mgr)).
  4. Stores reference in self.target so it can be cleaned up when execution stops.

Usage Example

-- Load a sub-flowgraph for a minigame:
-- [Start Event] → flow → [Load Project] filepath="minigames/race_setup"
--                          startNextFrame=false

-- Load with deferred start:
-- [Load Project] filepath="cutscenes/intro" startNextFrame=true

Key Dependencies

  • core_flowgraphManager.loadManager() - loads a flowgraph project from file
  • core_flowgraphManager.startNextFrame() - deferred project start
  • core_flowgraphManager.removeNextFrame() - deferred project removal

See Also

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

Load Level (Flowgraph Node)

- **Node Name:** `Load Level`

On Menu (Flowgraph Node)

- **Node Name:** `On Menu`

On this page

OverviewPin SchemaInput PinsInternalsKey MethodsNode Data PropertiesPath ResolutionHow It WorksUsage ExampleKey DependenciesSee Also