API ReferenceGE Extensionsflowgraphnodesgameplaytraffic
Set Vehicle Flowgraph
**File:** `flowgraph/nodes/gameplay/traffic/setVehicleFlowgraph.lua`
File: flowgraph/nodes/gameplay/traffic/setVehicleFlowgraph.lua
Description: Sets a custom flowgraph to run using the traffic vehicle id; ideal for custom AI roles and actions.
Category: once_instant Tags: traffic, ai, mode, flowgraph
Input Pins
| Name | Type | Description |
|---|---|---|
vehId | number | Vehicle Id. |
fgFile | string | Flowgraph file to run. |
Methods
C:init()C:_executionStopped()C:onNodeReset()C:workOnce()
See Also
- Add Vehicle (Traffic) - Related reference
- Traffic Driving Stats - Related reference
- File Vehicle Group - Related reference
- FlowGraph Guide - Guide