API ReferenceGE Extensionsflowgraphnodescareer
On Mission Start/Stop (Flowgraph Node)
- **Node Name:** `On Mission Start/Stop`
Overview
- Node Name:
On Mission Start/Stop - Category:
repeat_instant - File:
extensions/flowgraph/nodes/career/onMissionRunstateChanged.lua
Detects when the player starts or stops a mission.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
started | flow (impulse) | Fires once when a mission starts |
stopped | flow (impulse) | Fires once when a mission stops |
Behavior
work()- Resetsstartedtofalse, applies queued flags, clears flags table.
Event Hooks
| Hook | Output Pin |
|---|---|
onMissionStartWithFade | started |
onAnyMissionChanged (state = "stopped") | stopped |
Notes
- Standard flags-based impulse pattern.
- Contains a commented-out
abandonedoutput pin for future use. onAnyMissionChangedfilters for the"stopped"state specifically.
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