API ReferenceGE Extensionsflowgraphnodesmath
Increaser (Flowgraph Node)
- **Node Name:** `Increaser`
Overview
- Node Name:
Increaser - Category:
repeat_instant - File:
extensions/flowgraph/nodes/math/increaser.lua
Tracks a running maximum. If the input value exceeds the stored internal value, the internal value is updated to match.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Inflow for this node |
clear | flow (impulse) | Resets the value back to the reset-value |
value | number | The value to check against the internal maximum |
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Outflow (passes through input flow) |
changed | flow (impulse) | Fires when the internal value has increased |
result | number | The current maximum value |
Internals
| Field | Purpose |
|---|---|
self.data.currentValue | The tracked maximum value |
self.data.resetValue | Value to reset to (default 0) |
Legacy Pin Mapping
| Old Name | New Name |
|---|---|
reset (in) | clear |
How It Works
- Each frame, if
clearis triggered, the internal value resets toresetValue. - If the input
valueexceedscurrentValue, the internal value is updated andchangedfires. - The
resultoutput always reflects the current maximum. - On execution stop,
currentValueresets toresetValue.
Lua Example
-- Track the highest speed achieved during a mission
-- Connect vehicle speed → value pin
-- result pin shows the peak speed reached
-- clear pin connected to mission restartKey Dependencies
ui_imgui- displays current value in the node editor_flowgraph_createNode()- standard flowgraph node registration
Additional Methods
C:_executionStopped()
Called when graph execution stops. Used for cleanup.
C:drawMiddle(builder, style)
Custom ImGui drawing in the middle section of the node in the editor.
Parameters:
builderstyle
C:init()
Initializes the node, setting up pins and default properties.
C:work()
Main work function called each frame/tick when the node is active.
See Also
- Accumulator (Flowgraph Node) - Related reference
- Ease (Flowgraph Node) - Related reference
- Expression (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide