API ReferenceGE Extensionsflowgraphnodesmission
Get Mission Setup Data (Flowgraph Node)
- **Node Name:** `Get Mission Setup Data`
Overview
- Node Name:
Get Mission Setup Data - Category:
provider - File:
extensions/flowgraph/nodes/mission/getSetupData.lua
Provides values from the mission setup modules, including player vehicle configuration and traffic settings chosen during mission setup.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
useOriginalPlayerVeh | bool | True if the player's pre-existing vehicle was selected |
playerModel | string | The provided player vehicle model (hidden) |
playerConfig | string | The provided player vehicle config name (hidden) |
playerConfigPath | string | Full config file path (hidden) |
useTraffic | bool | True if traffic is enabled for the mission |
usePrevTraffic | bool | True if using pre-mission traffic (hidden) |
trafficAmount | number | Defined traffic amount |
trafficActiveAmount | number | Defined active traffic amount |
trafficRespawnRate | number | Defined traffic respawn rate |
How It Works
- The node reads
self.mgr.activity.setupModules- the mission's setup module data. - If the activity or setup data is nil, the node returns early (no outputs set).
- Vehicle data comes from
setupModules.vehicles:usePlayerVehicle→ boolean coercedplayerModel,playerConfig,playerConfigPath→ strings with empty fallbacks
- Traffic data comes from
setupModules.traffic:useTraffic,usePrevTraffic→ boolean coercedamount,activeAmount,respawnRate→ numbers with 0 fallback
Lua Example
-- In a mission flowgraph:
-- Connect this node's outputs to conditionally spawn vehicles or traffic
-- useOriginalPlayerVeh → Branch node → skip vehicle spawn if true
-- useTraffic → Branch node → enable/disable traffic spawning
-- trafficAmount → Traffic spawner node's amount inputKey Dependencies
self.mgr.activity.setupModules- mission setup module data structure_flowgraph_createNode()- standard flowgraph node registration
Additional Methods
C:work()
Main work function called each frame/tick when the node is active.
See Also
- ARunForLife (Flowgraph Node) - Related reference
- Update Display Drag Race (Flowgraph Node) - Related reference
- Clear Lights Drag Race (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide