API ReferenceGE Extensionsflowgraphnodesscenecamera
Set Camera Mode (Flowgraph Node)
- **Node Name:** `Set Camera Mode`
Overview
- Node Name:
Set Camera Mode - Category:
repeat_instant - File:
extensions/flowgraph/nodes/scene/camera/setCameraMode.lua
Sets the current camera mode by name (e.g., "orbit", "driver", "free").
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
mode | string | The camera mode name to set |
Behavior
work()- Each frame, ifmodeis a non-empty string, callscore_camera.setByName(0, mode).
Key Dependencies
core_camera.setByName(playerIndex, modeName)- Sets the active camera by name
How It Works
A straightforward node that continuously applies a camera mode every frame. Accepts standard BeamNG camera mode names like "orbit", "driver", "chase", "free", etc. Does nothing if the mode string is empty or nil.
Example Usage
-- Switch to orbit camera for a cinematic moment
-- Wire a string constant "orbit" into the mode pin
-- Pair with Get Camera Mode to save/restore the previous modeSee 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