API ReferenceGE Extensionsflowgraphnodesgameplaytraffic
Set Pursuit Mode
**File:** `flowgraph/nodes/gameplay/traffic/pursuitMode.lua`
File: flowgraph/nodes/gameplay/traffic/pursuitMode.lua
Description: Sets the police pursuit mode for a traffic vehicle.
Category: once_instant Tags: police, cops, pursuit, chase, traffic, ai
Input Pins
| Name | Type | Description |
|---|---|---|
mode | number | Pursuit mode; 0 = off, 1 to 3 = on, -1 = busted. |
targetId | number | Target id; if none given, the current player vehicle is used. |
policeId | number | Police id; if none given, all police vehicles get activated. |
Methods
C:workOnce()C:drawMiddle(builder, style)
See Also
- Add Vehicle (Traffic) - Related reference
- Traffic Driving Stats - Related reference
- File Vehicle Group - Related reference
- FlowGraph Guide - Guide