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
And (Flowgraph Node)Boolean Expression (Flowgraph Node)Branch (Flowgraph Node)Bundle (Flowgraph Node)Chainflow Branch (Flowgraph Node)Compare (Flowgraph Node)Edge Detector (Flowgraph Node)Flow Switch (Flowgraph Node)Frame Delay (Flowgraph Node)Once (Flowgraph Node)Flow Interval / Rate Limit (Flowgraph Node)Select (Flowgraph Node)Sequencer (Flowgraph Node)Switch Case (Flowgraph Node)Timed Trigger (Flowgraph Node)Wait (Flowgraph Node)XOR (Flowgraph 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 Extensionsflowgraphnodeslogic

Once (Flowgraph Node)

- **Node Name:** `Once`

Overview

  • Node Name: Once
  • Category: logic
  • Behaviour: {once = true}
  • File: extensions/flowgraph/nodes/logic/once.lua

Only lets flow through a single time. After firing once, blocks all subsequent flow until reset.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node
resetflowResets the node to allow flow again (impulse)

Output Pins

PinTypeDescription
flowflowOutflow - fires once then blocks (impulse)

Behavior

  • init(mgr, ...) - Sets ready to true.
  • work(args) - If reset is triggered, re-arms the node. Otherwise, if ready and flow is active, outputs flow once and sets ready to false. All subsequent calls output false until reset.
  • _executionStopped() - Re-arms the node (sets ready to true).

How It Works

The node acts as a one-shot gate. On the first frame that flow arrives, it passes through and the gate closes. The gate stays closed until either:

  1. The reset impulse pin fires
  2. Execution stops and restarts

This is commonly used to trigger initialization logic or one-time events that should not repeat.

Example Usage

-- Trigger a welcome message only once:
-- flow → [Once] → [Show Message "Welcome!"]
-- Even if flow continues, the message only shows once

-- Reset after a level change:
-- Connect level-changed event to reset pin
-- The Once node re-arms and can fire again

See Also

  • And (Flowgraph Node) - Related reference
  • Boolean Expression (Flowgraph Node) - Related reference
  • Branch (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Frame Delay (Flowgraph Node)

- **Node Name:** `Frame Delay`

Flow Interval / Rate Limit (Flowgraph Node)

- **Node Name:** `Flow Interval`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorHow It WorksExample UsageSee Also