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

Get Vehicle Data

- **Node Name:** `Get Vehicle Data`

Overview

  • Node Name: Get Vehicle Data
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/vehicle/vehicleMapData.lua

Provides vehicle position, direction, velocity, damage, and other properties from the map.objects data. This is the modern replacement for the legacy vehicleData.lua node.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberVehicle ID. Falls back to player vehicle via be:getPlayerVehicleID(0).

Output Pins

PinTypeDescription
positionvec3Vehicle refnode position.
dirVecvec3Forward direction vector.
dirVecUpvec3Up direction vector (hidden).
rotationquatVehicle rotation quaternion (hidden).
velocitynumberSpeed in m/s.
velocityVectorvec3Velocity vector (hidden).
activeboolWhether the vehicle is active (hidden).
damagenumberDamage amount (not monetary).
newAPIDamagenumberDamage from the new API (getSectionDamageSum()).

Internals

Key Methods

MethodDescription
init()No-op.
work()Reads map.objects[vehId] for telemetry; uses isUsed() checks to skip unused outputs for performance.

Performance Optimisation

This node checks pinOut.xxx:isUsed() before computing each output. Unused pins are skipped entirely, avoiding unnecessary vec3→table conversions.

How It Works

  1. Resolves the vehicle ID (falls back to be:getPlayerVehicleID(0)).
  2. Looks up the vehicle in map.objects for position, direction, velocity, and damage.
  3. Only computes and outputs values for pins that are actually connected.
  4. Uses veh:getSectionDamageSum() for the new damage API output.

Usage Example

-- Flowgraph:
-- [Vehicle ID] → vehId → [Get Vehicle Data (Map)]
--                              ↓ velocity → [Speed Check]
--                              ↓ position → [Distance Calc]
--                              ↓ damage   → [Damage Monitor]

-- Equivalent GE Lua:
local data = map.objects[vehId]
local speed = data.vel:length()
local pos = data.pos
local dmg = data.damage
local newDmg = scenetree.findObjectById(vehId):getSectionDamageSum()

Key Dependencies

  • map.objects - vehicle telemetry from the map system
  • be:getPlayerVehicleID(0) - player vehicle ID fallback
  • veh:getSectionDamageSum() - new damage API

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

Get Vehicle Data

- **Node Name:** `Get Vehicle Data`

Get Vehicle Bounds

- **Node Name:** `Get Vehicle Bounds`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsPerformance OptimisationHow It WorksUsage ExampleKey DependenciesSee Also