Finish Mission Node (Activity Stop)
Stops the current mission/activity. Defers the actual stop to `_afterTrigger` to allow the current frame's flowgraph execution to complete. Category: implicit (flow-driven).
Stops the current mission/activity. Defers the actual stop to _afterTrigger to allow the current frame's flowgraph execution to complete. Category: implicit (flow-driven).
Pins
Inputs
| Name | Type | Fixed | Description |
|---|---|---|---|
flow | flow | yes | Triggers mission stop |
attempt | table (attemptData) | yes | Attempt data (optional - defaults to empty "attempted") |
Behavior
C:work(): Setsself.stopping = true(deferred execution)C:_afterTrigger(): If stopping flag set:- With activity: calls
self.mgr:setRunning(false)to stop the flowgraph - Without activity: stops flowgraph and calls
ui_fadeScreen.stop(0)to clear fade - Creates default attempt
gameplay_missions_progress.newAttempt("attempted", {})if none provided
- With activity: calls
- Note: The actual
gameplay_missions_missionManager.stop()call is commented out - stopping is handled bysetRunning(false)which triggers the activity flow stop chain
Usage Example
-- Typical end-of-mission flow:
-- [Aggregate Attempt] → [Show End Screen] → [Button Click] → [Finish Mission]
-- The node defers stop to _afterTrigger so the current
-- frame's graph traversal completes cleanlyAdditional Exports
-
name-string- (see source) -
color-any- (see source) -
description-string- (see source) -
pinSchema-table- (see source) -
legacyPins-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
Activity Reset Prefabs Node
Resets all vehicles inside prefabs loaded by the associated activity to their original positions. Category: `once_p_duration`.
Aggregate Attempt Node
Aggregates a mission attempt into persistent progress data, producing change objects for UI display including leaderboard updates, star unlocks, and outro text. Category: `once_p_duration`.