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
Set Input Actions (Flowgraph Node)Set Input Action Filters (Flowgraph Node)Get Action Control (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 Extensionsflowgraphnodesinput

Get Action Control (Flowgraph Node)

- **Node Name:** `Get action control`

Overview

  • Node Name: Get action control
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/input/getActionControl.lua
  • Tags: scenario

Returns the control name (key/button binding) mapped to a given input action.

Pin Schema

Input Pins

PinTypeDescription
actionNamestringThe name of the input action (e.g., "accelerate")

Output Pins

PinTypeDescription
controlNamestringThe name of the control bound to that action

Internals

  • Simple per-frame node - calls core_input_bindings.getControlForAction() every frame.
  • Returns the currently bound control name as a string.

How It Works

  1. Each frame, looks up the control binding for the given action name.
  2. Outputs the control name (e.g., "keyboard W", "gamepad RT").
  3. Useful for displaying context-sensitive control hints in UI.

Lua Code Example

-- Get the control bound to the accelerate action
local control = core_input_bindings.getControlForAction("accelerate")
-- control might be "keyboard W" or "gamepad RT"

Key Dependencies

  • core_input_bindings.getControlForAction() - resolves action name to bound control

Additional Methods

C:work(args)

Main work function called each frame/tick when the node is active.

Parameters:

  • args

See Also

  • Set Input Actions (Flowgraph Node) - Related reference
  • Set Input Action Filters (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Set Input Action Filters (Flowgraph Node)

- **Node Name:** `Set Input Actionsfilters`

And (Flowgraph Node)

- **Node Name:** `And`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsHow It WorksLua Code ExampleKey DependenciesAdditional MethodsC:work(args)See Also