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
Align For CouplingApply Velocity to VehicleBoost VehicleSet Vehicle ColorsCustom Parts Config ProviderEnter VehicleFlip UprightFreeze VehicleGenerate License PlateGet Vehicle ActiveGet Electrics ValueGet GearboxmodeGet Powertrain DataGravity ForceDistance From GroundHas Coupler TagIs CoupledIs Player UsableKeep VehicleMove Vehicle ToOn Cannon FiredOn Vehicle DestroyedOn Vehicle ResetOn Vehicle SpawnedOn Vehicle SwitchedPlayer UsableRandom Config ProviderRecover In PlaceRemove VehicleTimeline ReplaySet Vehicle ActiveSet Gearbox ModeSet IgnitionSet License PlateSet LightbarSet LightsShift to Gear IndexSpawn VehicleVehicle StatesTeleport To Last RoadToggle Vehicle ControlsMove To ShowroomVehicle TouchProps TouchStatic Object TouchTrack VehicleTrailer Respawn ControlVehicle Config ProviderGet Vehicle DataGet Vehicle DataGet Vehicle BoundsVehicle PingGet Vehicle Wheel Center

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 Extensionsflowgraphnodesvehicle

Is Coupled

- **Node Name:** `Is Coupled`

Overview

  • Node Name: Is Coupled
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/vehicle/isCoupled.lua

Detects whether two vehicles are coupled (attached via coupler - e.g., tow hitch, fifth wheel). Outputs both flow pins and a boolean for branching.

Pin Schema

Input Pins

PinTypeDescription
vehAnumberID of vehicle A
vehBnumberID of vehicle B

Output Pins

PinTypeDescription
coupledflowActive when the vehicles are coupled
decoupledflowActive when the vehicles are not coupled
isCoupledboolTrue if the vehicles are coupled

Internals

Key Methods

MethodDescription
work()Calls self.mgr.modules.vehicle:isCoupledTo(vehA, vehB) and sets all three output pins

How It Works

  1. Each frame, the node queries the flowgraph vehicle module to check if vehicle A is coupled to vehicle B.
  2. The coupled flow pin is active when they are attached.
  3. The decoupled flow pin is active when they are not attached.
  4. The isCoupled boolean pin mirrors the coupled state.

Usage Example

-- In a flowgraph:
-- [Is Coupled] ← vehA ← [Truck ID]
--              ← vehB ← [Trailer ID]
--   → (coupled)   → [Coupled logic]
--   → (decoupled) → [Decoupled logic]

-- The underlying check uses the flowgraph vehicle module:
-- self.mgr.modules.vehicle:isCoupledTo(truckId, trailerId)

Key Dependencies

  • self.mgr.modules.vehicle:isCoupledTo() - checks coupling state between two vehicles in the flowgraph vehicle module

See Also

  • Align for Coupling (Flowgraph Node) - Related reference
  • Apply Velocity to Vehicle (Flowgraph Node) - Related reference
  • Boost Vehicle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Has Coupler Tag

- **Node Name:** `Has Coupler Tag`

Is Player Usable

- **Node Name:** `Is Player usable`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also