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

Enter Vehicle

- **Node Name:** `Enter Vehicle`

Overview

  • Node Name: Enter Vehicle
  • Category: dynamic_instant
  • File: extensions/flowgraph/nodes/vehicle/enterVehicle.lua

Makes the player enter a vehicle and sets the camera to the game camera. Works with the walk mode system (gameplay_walk) to transition from on-foot to in-vehicle.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberID of the vehicle to enter. If not provided, uses the player vehicle

Legacy Pins

Old NameNew Name
vehIDvehId

Internals

Key Methods

MethodDescription
workOnce()Calls enterVehicle() once on first trigger
work()In repeat dynamic mode, calls enterVehicle() every frame
enterVehicle()Resolves the vehicle, calls gameplay_walk.getInVehicle(), then commands.setGameCamera()

How It Works

  1. The node resolves the target vehicle from vehId pin or defaults to getPlayerVehicle(0).
  2. If a valid vehicle is found, it calls gameplay_walk.getInVehicle(veh) to handle the enter-vehicle transition (including exiting walk mode if active).
  3. After entering, commands.setGameCamera() switches to the standard game camera (orbit/chase).
  4. Supports dynamic_instant category - can run once or repeat based on the node's dynamic mode setting.

Usage Example

-- In a flowgraph:
-- [Spawn Vehicle] → vehId → [Enter Vehicle] → [Continue]

-- Programmatic equivalent:
local veh = scenetree.findObjectById(vehId)
if veh then
  gameplay_walk.getInVehicle(veh)
  commands.setGameCamera()
end

Key Dependencies

  • gameplay_walk.getInVehicle() - handles the player entering a vehicle from walk mode
  • commands.setGameCamera() - switches to the default game camera
  • gameplay_walk - listed as a dependency; must be loaded

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

Custom Parts Config Provider

- **Node Name:** `Custom Parts Config Provider`

Flip Upright

- **Node Name:** `Flip Upright`

On this page

OverviewPin SchemaInput PinsLegacy PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also