RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Activity Attempt NodeActivity Flow NodeActivity Hook Trigger NodeActivity Reset Prefabs NodeFinish Mission Node (Activity Stop)Aggregate Attempt NodeActivity Attempt Stars NodeActivity Attempt Vehicle NodeAuto Star Goals NodeGet Progress NodeMission Attempt Stars NodeRequest Abandon NodeStars Active (Flowgraph Node)

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsflowgraphnodesactivity

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

NameTypeFixedDescription
flowflowyesTriggers mission stop
attempttable (attemptData)yesAttempt data (optional - defaults to empty "attempted")

Behavior

  • C:work(): Sets self.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
  • Note: The actual gameplay_missions_missionManager.stop() call is commented out - stopping is handled by setRunning(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 cleanly

Additional 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`.

On this page

PinsInputsBehaviorUsage ExampleAdditional ExportsSee Also