API ReferenceGE Extensionsflowgraphnodesevents
Controls Action Node
- **File:** `flowgraph/nodes/events/controlsAction.lua`
Overview
- File:
flowgraph/nodes/events/controlsAction.lua - Name: Controls Action
- Category:
logic
Lets flow through when Action (Ctrl + Space) has been pressed. Automatically pushes/pops the FlowgraphActions action map.
Pin Schema
| Dir | Type | Name | Flags | Description |
|---|---|---|---|---|
| in | flow | flow | Inflow for this node. | |
| out | flow | flow | impulse | Outflow once when action pressed. |
| out | bool | value | hidden | True when action pressed, false otherwise. |
Tags
input
Key Methods
| Method | Description |
|---|---|
onControlsAction() | Hook called when Ctrl+Space pressed; sets flag and timestamp. |
work() | Checks if action was pressed within last 2 frames; outputs flow/value accordingly. |
_executionStarted() | Pushes FlowgraphActions action map. |
_executionStopped() | Pops FlowgraphActions action map. |
See Also
- Controls Reset Node - Related reference
- Custom Trigger Node - Related reference
- on BeamNGTrigger Node - Related reference
- FlowGraph Guide - Guide