API ReferenceGE Extensionsflowgraphnodesdebug
AI Debug Display
- **Name:** `AI Debug Display`
Overview
- Name:
AI Debug Display - Category:
dynamic_p_duration - File:
lua/ge/extensions/flowgraph/nodes/debug/aiDebug.lua - Pattern: Class-based (
C = {}, returns_flowgraph_createNode(C))
Description
Shows or hides various debug visualizations for AI vehicles. Supports modes: off, target, trajectory, speeds, and route.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
vehId | number | 0 | AI vehicle ID (0 or nil uses player vehicle) |
mode | string | "off" (hardcoded) | Debug mode: off, target, trajectory, speeds, route |
Behavior
postInit()builds hardcoded template options for the mode pin from the modes list.workOnce()callsSetAIDebugMode()once on first trigger.work()repeats the call ifdynamicMode == 'repeat'.SetAIDebugMode()resolves the vehicle (by ID or player vehicle) and queues a Lua command on it:ai.setVehicleDebugMode({debugMode = "..."}).
Key APIs Used
scenetree.findObjectById()getPlayerVehicle(0)veh:queueLuaCommand()
Tags
#flowgraph #node #ge #debug #ai
Additional Exports
-
name-string- (see source) -
color-any- (see source) -
icon-any- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- Camera Mouse Raycast - Related reference
- Comment - Related reference
- Debug Cylinder - Related reference
- FlowGraph Guide - Guide