API ReferenceGE Extensionsflowgraphnodesactivity
Request Abandon Node
Listens for the player pressing the abandon/quit button during a mission. When this node exists in a flowgraph, the mission must be stopped manually (auto-stop is suppressed). Category: `logic`.
Listens for the player pressing the abandon/quit button during a mission. When this node exists in a flowgraph, the mission must be stopped manually (auto-stop is suppressed). Category: logic.
Pins
Inputs
| Name | Type | Description |
|---|---|---|
flow | flow | Inflow for continuous execution |
Outputs
| Name | Type | Description |
|---|---|---|
flow | flow (impulse) | Fires once when abandon is pressed |
value | bool (hidden) | true when abandon pressed, false otherwise |
Behavior
C:work(): Each frame, checksself.resetflag. If true, outputs flow and value=true for one frame, then resetsC:onRequestAbandon(): Hook handler - setsself.reset = truewhen player requests abandonC:_afterTrigger(): Clears reset flag after processingdata.blocksOnResetGameplay = true- prevents default reset behavior- Logs abandon event to flowgraph manager
Lifecycle
_executionStarted(): Clears reset flag_executionStopped(): Clears reset flag
Usage Example
-- Typical abandon handling flow:
-- [Request Abandon].flow → [Show Confirm Dialog] → [Finish Mission]
-- Or immediate stop:
-- [Request Abandon].flow → [Activity Stop]
-- The node's existence tells the system that abandon handling
-- is managed by the flowgraph, not automatically.
-- Without this node, pressing abandon auto-stops the mission.Internal Details
- Uses
_afterTrigger(underscore prefix) for internal cleanup - called after graph traversal - The
resetflag ensures impulse behavior: output fires for exactly one frame - Previously used action maps (
FlowgraphControls) - now commented out
Additional Exports
init(mgr, ...)
- mgr -
any - ... -
any
drawMiddle(builder, style)
-
builder -
any -
style -
any -
name-string- (see source) -
color-any- (see source) -
description-any- (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