API ReferenceGE Extensionsflowgraphnodesgameplaytraffic
Pursuit Roadblock
**File:** `flowgraph/nodes/gameplay/traffic/pursuitRoadblock.lua`
File: flowgraph/nodes/gameplay/traffic/pursuitRoadblock.lua
Description: Places vehicles in a roadblock formation.
Category: once_instant Tags: police, cops, pursuit, traffic, ai
Input Pins
| Name | Type | Description |
|---|---|---|
vehId1 | number | Vehicle id to use for the first position of the roadblock. |
vehId2 | number | (Optional) Vehicle id to use for the second position of the roadblock. |
vehId3 | number | (Optional) Vehicle id to use for the third position of the roadblock. |
pos | vec3 | Roadblock center position. |
rot | quat | Roadblock forwards rotation. |
width | number | (Optional) Full width of the roadblock; vehicles will be spaced apart according to this. |
angle | number | (Optional) Vehicle angle offset, in degrees. |
centerAngle | number | (Optional) Vehicle angle offset, in degrees. |
checkWidth | bool | If true, checks if the vehicles will fit before placing them. |
Methods
C:workOnce()
See Also
- Add Vehicle (Traffic) - Related reference
- Traffic Driving Stats - Related reference
- File Vehicle Group - Related reference
- FlowGraph Guide - Guide