Flowgraph Action Module
Manages input action filtering for flowgraph projects. Allows nodes to block or allow specific player input actions during flowgraph execution (e.g., disabling certain controls during a mission cutsce
Manages input action filtering for flowgraph projects. Allows nodes to block or allow specific player input actions during flowgraph execution (e.g., disabling certain controls during a mission cutscene).
No public module exports - created via _flowgraph_createModule(C).
Purpose
Nodes register lists of action names to block. The module aggregates these into a single core_input_actionFilter group that is applied/removed as execution starts/stops.
Key Methods
| Method | Signature | Description |
|---|---|---|
init | () | Calls clear(). |
clear | () | Resets all stored actions, pending adds/removes, and registered lists. |
registerList | (list) | Registers a list of action names, returns an ID handle. |
blockActions | (id) | Queues the registered list for blocking. |
allowActions | (id) | Queues the registered list for unblocking. |
afterTrigger | () | Applies pending add/remove changes to core_input_actionFilter group fg_filter_{mgrId}. |
executionStopped | () | Removes the filter group and restores walking mode permission. |
executionStarted | () | Saves the current walking mode toggle state for later restoration. |
Data Flow
Node registers list → registerList({"steer", "accelerate"}) → id
Node blocks actions → blockActions(id)
afterTrigger() → core_input_actionFilter.setGroup('fg_filter_X', combinedList)
→ core_input_actionFilter.addAction(0, 'fg_filter_X', true)
executionStopped() → core_input_actionFilter.addAction(0, 'fg_filter_X', false)Properties
| Property | Default | Description |
|---|---|---|
moduleOrder | 0 | Standard priority. |
storedActions | {} | Accumulated active action names. |
actionsByName | {} | Set of currently blocked action names. |
lists | {} | Registered action lists keyed by ID. |
Additional Exports
getFreeId()
-
Returns:
any -
idCounter-number- (see source)
See Also
- Flowgraph AI Recording Module - Related reference
- Flowgraph Button Module - Related reference
- Flowgraph Camera Module - Related reference
- FlowGraph Guide - Guide
Flowgraph Variable Storage
Class-based storage for flowgraph variables. Manages typed variables with merge strategies, serialization, custom ordering, and per-graph node updates.
Flowgraph AI Recording Module
Handles recording and replaying AI vehicle scripts during mission execution. Used for mission testing - records the player's driving as an AI path, then saves it alongside mission test data.