API ReferenceGE Extensionsflowgraphnodesactivity
Activity Attempt Vehicle Node
Adds vehicle information to an attempt data object. Records model, config, and origin (career inventory or setup module). Category: `once_instant`.
Adds vehicle information to an attempt data object. Records model, config, and origin (career inventory or setup module). Category: once_instant.
Pins
Inputs
| Name | Type | Fixed | Description |
|---|---|---|---|
flow | flow | yes | Execution trigger (implicit) |
vehKey | string | no | Key name in attempt data (default: "vehicle") |
vehId | number | no | Vehicle ID (defaults to player vehicle 0) |
attempt | table (attemptData) | yes | Attempt data to modify |
Outputs
| Name | Type | Fixed | Description |
|---|---|---|---|
attempt | table (attemptData) | yes | Modified attempt with vehicle data |
Behavior
C:workOnce():- Resolves vehicle from
vehIdpin orgetPlayerVehicle(0) - Records
model(jbeam),config(partConfig),isConfigFile - In career mode with
usePlayerVehicle: addsoriginIdfrom inventory,originKey = "careerInventory" - In career mode without player vehicle: adds setup module selection index,
originKey = "providedBySetupModule" - Stores as
attempt[vehKey] = vData
- Resolves vehicle from
Usage Example
-- Typical pipeline:
-- [Activity Attempt] → [Attempt Vehicle] → [Attempt Stars] → [Aggregate]
-- Result in attempt data:
attempt.vehicle = {
model = "vivace",
config = "vehicles/vivace/sport.pc",
isConfigFile = true,
originId = 42, -- career inventory ID
originKey = "careerInventory"
}Additional Exports
init()
-
color-any- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- Activity Attempt Node - Related reference
- Activity Flow Node - Related reference
- Activity Hook Trigger Node - Related reference
- FlowGraph Guide - Guide