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
ARunForLife (Flowgraph Node)Clear Lights Drag Race (Flowgraph Node)Countdown Lights Controller (Flowgraph Node)Get Custom Vehicle Data (Flowgraph Node)Get Mission Setup Data (Flowgraph Node)Check Players Position / Go To Start Line (Flowgraph Node)KnockAway Check (Flowgraph Node)Lights Controller (Flowgraph Node)Mission Post Clean (Flowgraph Node)Mission Cleanup / Pre Clean (Flowgraph Node)Prepare Vehicle (Flowgraph Node)Remove Stashed Player Vehicle (Flowgraph Node)Select Garage Vehicle (Flowgraph Node)Select Garage Sites / Zones (Flowgraph Node)Select Garage Spots (Flowgraph Node)Select Heist Spots (Flowgraph Node)Set Stage Lights (Flowgraph Node)Update Display Drag Race (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 Extensionsflowgraphnodesmission

Check Players Position / Go To Start Line (Flowgraph Node)

- **Node Name:** `Check Players Position`

Overview

  • Node Name: Check Players Position
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/mission/goToStartLine.lua

Detects whether the player's vehicle is aligned with the starting line for drag race missions. Outputs directional guidance (move forward/backward) or confirms alignment.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node
resetflow (impulse)Resets all outputs
vehIdnumberID of the vehicle to check
distancenumberDistance of the closest wheels' center to the start position
velocitynumberVelocity of the vehicle

Output Pins

PinTypeDescription
flowflowOutflow for this node
inLineflowActive when the vehicle is properly positioned
outLineForwardflowActive when the vehicle needs to move forward
outLineBackwardflowActive when the vehicle needs to move backward

Legacy Pin Mapping

Old NameNew Name
vehicleID (in)vehId

How It Works

  1. On execution start, the node retrieves the vehicle reference from the vehicle module.
  2. Each frame, it evaluates the distance input:
    • distance > 0.35: Vehicle is too far back → outLineForward = true
    • distance < 0: Vehicle has crossed the line → outLineBackward = true
    • 0 ≤ distance ≤ 0.35: Vehicle is aligned → inLine = true
  3. Only one output is active at a time; the others are set to false.
  4. On reset, all outputs are cleared.

The commented-out code shows intended UI messages: "Move forward", "Move backward", or "Stop your vehicle now."

Lua Example

-- Flowgraph connection:
-- Distance sensor → distance pin
-- outLineForward → show "Move Forward" UI message
-- outLineBackward → show "Move Backward" UI message
-- inLine → proceed to countdown sequence

Key Dependencies

  • self.mgr.modules.vehicle - vehicle module for looking up vehicle reference
  • _flowgraph_createNode() - standard flowgraph node registration

Additional Methods

C:_executionStarted()

Called when graph execution starts. Used for initialization/reset.

C:init()

Initializes the node, setting up pins and default properties.

C:work()

Main work function called each frame/tick when the node is active.


See Also

  • ARunForLife (Flowgraph Node) - Related reference
  • Update Display Drag Race (Flowgraph Node) - Related reference
  • Clear Lights Drag Race (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Get Mission Setup Data (Flowgraph Node)

- **Node Name:** `Get Mission Setup Data`

KnockAway Check (Flowgraph Node)

- **Node Name:** `KnockAway Check`

On this page

OverviewPin SchemaInput PinsOutput PinsLegacy Pin MappingHow It WorksLua ExampleKey DependenciesAdditional MethodsC:_executionStarted()C:init()C:work()See Also