API ReferenceGE Extensionsflowgraphnodesvehicle
Vehicle Config Provider
- **Node Name:** `Vehicle Config Provider`
Overview
- Node Name:
Vehicle Config Provider - Category:
provider - File:
extensions/flowgraph/nodes/vehicle/vehicleConfigProvider.lua - Behaviour:
simple
A provider node that lets the user select a vehicle model and configuration in the editor, then outputs the model/config strings for use by other nodes.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
model | string | The model key of the selected vehicle (e.g. "pickup"). |
config | string | The config path of the selected vehicle. |
modelName | string | Human-readable model name (hidden). |
configName | string | Human-readable config name (hidden). |
Internals
Key Methods
| Method | Description |
|---|---|
init() | Initialises empty model/config state. |
drawCustomProperties() | Uses ui_flowgraph_editor.vehicleSelector() to render the vehicle picker UI. |
drawMiddle(builder, style) | Shows the model and config names in the node body. |
work() | Outputs the stored model, configPath, modelName, and configName. |
_onSerialize(res) | Saves all selection state. |
_onDeserialized(nodeData) | Restores selection state. |
How It Works
- In the editor, the user picks a vehicle model and configuration via the built-in vehicle selector UI.
- The selected model key, config path, and display names are stored in the node.
- At runtime, these values are output as strings for consumption by spawn nodes, comparison logic, etc.
Usage Example
-- Flowgraph:
-- [Vehicle Config Provider] → model → [Spawn Vehicle]
-- → config → [Spawn Vehicle]
-- The provider outputs static strings like:
-- model = "pickup"
-- config = "vehicles/pickup/default.pc"Key Dependencies
ui_flowgraph_editor.vehicleSelector()- editor vehicle/config picker widget
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