API ReferenceGE Extensionsflowgraphnodescareer
On Testdrive Changed
- **Name:** `On Testdrive Changed`
Overview
- Name:
On Testdrive Changed - Category:
repeat_instant - File:
lua/ge/extensions/flowgraph/nodes/career/onTestDriveChanged.lua - Pattern: Class-based (
C = {}, returns_flowgraph_createNode(C))
Description
Detects when a test drive starts or ends during career vehicle shopping. Uses hook callbacks to queue impulse flags consumed each frame.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
started | flow (impulse) | Fires once when a test drive starts |
ended | flow (impulse) | Fires once when a test drive ends (after fade) |
Behavior
work()resets thestartedpin each frame, then applies any queued flags from callbacks before clearing them.onTestDriveStarted()sets thestartedflag.onTestDriveEndedAfterFade()sets theendedflag.
Tags
#flowgraph #node #ge #career #testdrive
Additional Exports
init()
-
name-string- (see source) -
description-string- (see source) -
color-any- (see source) -
icon-any- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
dependencies-table- (see source)
See Also
- Add To Inventory (Flowgraph Node) - Related reference
- Career Vehicle Select (Flowgraph Node) - Related reference
- Set Tutorial Step (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide