API ReferenceGE Extensionseditor
Vehicle Bridge Test
Simple debug tool for testing the vehicle bridge - sends key-value requests to a vehicle's Lua VM and displays the response.
Simple debug tool for testing the vehicle bridge - sends key-value requests to a vehicle's Lua VM and displays the response.
Module: M (extensions.editor.vehicleBridgeTest)
| Function | Description |
|---|---|
M.onEditorInitialized() | Registers window, menu item (Vehicles group), and loads core_vehicleBridge |
M.onEditorGui() | Draws UI: vehicle ID input, vehicle combo selector, key input, Get Value button, result display |
M.callback(...) | Receives bridge response data and stores it for display |
Usage Example
-- Open via F11 > Vehicles > Vehicle Bridge Test
-- The tool provides:
-- 1. Vehicle ID input (integer) or dropdown to select by name
-- 2. Key input (e.g., "ignition", "rpm", "gear")
-- 3. "Get Value!" button that calls:
core_vehicleBridge.requestValue(
scenetree.findObjectById(vehId),
function(...) editor_vehicleBridgeTest.callback(...) end,
key
)
-- 4. Result display showing the returned value
-- This is useful for debugging what data is available
-- through the vehicle bridge API for a given key.
-- The bridge communicates asynchronously between GE and VE Lua VMs.
-- The callback receives the response as varargs.See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide