API ReferenceGE Extensionseditor
Traffic Debug
Editor window for inspecting and debugging the traffic AI system - displays per-vehicle traffic state, road data, and action logs.
Editor window for inspecting and debugging the traffic AI system - displays per-vehicle traffic state, road data, and action logs.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorDeactivated | () | Cleanup when editor is deactivated |
M.onEditorInitialized | () | Registers "Traffic Debug" window |
M.onEditorGui | () | Main GUI with tabbed traffic vehicle inspection |
M.onTrafficAction | (id, action, data) | Callback for traffic action events; appends to action log |
Key Features
- Per-vehicle state display: damage, speed, focus distance, respawn count, AI state
- Road data display: node IDs, speed limit, alignment, side offset
- Traffic amount controls: Adjust active traffic and parking vehicle counts
- Action log: Records traffic events (spawn, despawn, state changes)
- Tabbed interface: General, per-vehicle details, road info
Notes
- Reads traffic data from
gameplay_trafficextension - Displays general and road-specific keys per vehicle
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Tool Shortcuts
Assigns keyboard shortcuts (F1–F9) to editor edit modes, enabling quick tool switching.
Traffic Manager
Editor tool for managing traffic vehicle configurations - create/edit traffic vehicle definitions, configure roles and behaviors, run traffic simulations, and save/load traffic sessions.