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
Collection Marker (Flowgraph Node)Custom Lua Command (Flowgraph Node)Get Object Field (Flowgraph Node)Get Player Vehicle ID (Flowgraph Node)Get Point on Decalroad (Flowgraph Node)Show/Hide Object (Flowgraph Node)ID by Name (Flowgraph Node)Keep Prefab (Flowgraph Node)Particle Emitter (Flowgraph Node)Point on Decalroad (Flowgraph Node)Raceline Parking (Flowgraph Node)Raycast (Flowgraph Node)Parking Markers / Rect Marker (Flowgraph Node)Reload Collision (Flowgraph Node)Reload Nav Graph (Flowgraph Node)Remove Prefab (Flowgraph Node)Reset Prefab (Flowgraph Node)Set Object Field (Flowgraph Node)Sevensegment Display (Flowgraph Node)Single Marker (Flowgraph Node)Spawn Light / SpotLight (Flowgraph Node)Spawn Prefab (Flowgraph Node)Spawn TSStatic (Flowgraph Node)Store Statics (Flowgraph Node)Track Prefab (Flowgraph Node)
Camera Transform (Flowgraph Node)Camera Look at Position (Flowgraph Node)Camera Auto Circle (Flowgraph Node)Simple Cam Path (Flowgraph Node)Get Camera FOV (Flowgraph Node)Get Camera Mode (Flowgraph Node)Get Cam Path (Flowgraph Node)Restart Cam Path (Flowgraph Node)Return Camera to Vehicle (Flowgraph Node)Set Camera FOV (Flowgraph Node)Set Camera Mode (Flowgraph Node)Set Camera Position (Flowgraph Node)Set Camera Rotation (Flowgraph Node)Start Cam Path (Flowgraph Node)Stop Cam Path (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 Extensionsflowgraphnodesscenecamera

Return Camera to Vehicle (Flowgraph Node)

- **Node Name:** `Return camera to vehicle`

Overview

  • Node Name: Return camera to vehicle
  • Category: once_instant
  • File: extensions/flowgraph/nodes/scene/camera/returnToVehicle.lua

Returns the camera from free camera or other modes back to following the active player vehicle.

Pin Schema

No input or output pins beyond the default flow pins.

Behavior

  • workOnce() - Checks if a player vehicle exists via getPlayerVehicle(0):
    • If a vehicle exists: calls commands.setGameCamera() to return to the vehicle camera.
    • If no vehicle: logs a warning ('No active vehicle to return camera to!').

Key Dependencies

  • getPlayerVehicle(0) - Returns the player's current vehicle object (or nil)
  • commands.setGameCamera() - Switches camera back to the game/vehicle camera

How It Works

This node is typically used at the end of a cinematic sequence or free camera exploration to snap the camera back to the player's vehicle. It's a safety-checked one-shot action that warns if no vehicle is available.

Example Usage

-- Place at the end of a camera path sequence to return control
-- Wire after a Stop Cam Path node to cleanly exit cinematics
-- Also useful after any free camera manipulation nodes

See Also

  • Camera Transform (Flowgraph Node) - Related reference
  • Camera Look at Position (Flowgraph Node) - Related reference
  • Camera Auto Circle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Restart Cam Path (Flowgraph Node)

- **Node Name:** `Restart Cam Path`

Set Camera FOV (Flowgraph Node)

- **Node Name:** `Set Camera FOV`

On this page

OverviewPin SchemaBehaviorKey DependenciesHow It WorksExample UsageSee Also