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
Route Distance (Flowgraph Node)Closest Road (Flowgraph Node)Custom Lua (Flowgraph Node)Distance Between (Flowgraph Node)Waypoints Distance (Flowgraph Node)File Exists (Flowgraph Node)Get First Element of Table (Flowgraph Node)Get Level Data (Flowgraph Node)Get Map Objects IDs by DynField (Flowgraph Node)Get Table Value By Key (Flowgraph Node)GHOST (Flowgraph Node)Hide Loading Screen (Flowgraph Node)Color HSV (Flowgraph Node)Line Point From Xnorm (Flowgraph Node)Load Level (Flowgraph Node)Load Project (Flowgraph Node)On Menu (Flowgraph Node)Perlin Noise (Flowgraph Node)Pop Action Map (Flowgraph Node)Get Project InfoPush Action MapRandom ColorRandom NumberRandom QuaternionRandom VectorRoad PropertiesGet Navgraph RouteRoute PositionTemplate NodeTimeTimed SequenceTo NumberTo StringWorld Editor Open

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 Extensionsflowgraphnodesutil

Push Action Map

- **Node Name:** `Push Action Map`

Overview

  • Node Name: Push Action Map
  • Category: once_instant
  • File: extensions/flowgraph/nodes/util/pushActionMap.lua

Pushes an action map onto the input stack, enabling its input bindings. Automatically pops the action map when execution stops.

Pin Schema

Input Pins

PinTypeDescription
namestringName of the action map to push

Internals

Key Methods

MethodDescription
init(mgr)Calls _executionStopped() for initial cleanup
_executionStopped()Pops the action map if one was pushed, clears mapName
workOnce()Stores the pin value in mapName and calls pushActionMap()
drawMiddle(builder, style)Displays which action map is currently pushed

Auto-Cleanup

When the flowgraph execution stops, _executionStopped() automatically pops the action map. This ensures no stale action maps remain on the stack.

Known Issues

The node's todo field notes: "Weird behaviour if multiple projects use the same action map."

How It Works

  1. workOnce() reads the action map name from the input pin and calls pushActionMap(name).
  2. Stores the name in self.mapName for later cleanup.
  3. The editor displays the pushed map name in the node's middle area.
  4. On execution stop, automatically pops the map to prevent input conflicts.

Usage Example

-- Enable custom race controls during a race:
-- [Race Start] → flow → [Push Action Map] name="RaceControls"
-- ...race gameplay... (map auto-pops when flowgraph stops)

-- Or explicitly pop:
-- [Race End] → flow → [Pop Action Map] name="RaceControls"

Key Dependencies

  • pushActionMap() - engine function to push an action map onto the stack
  • popActionMap() - engine function to remove an action map from the stack

See Also

  • Route Distance (Flowgraph Node) - Related reference
  • Closest Road (Flowgraph Node) - Related reference
  • Custom Lua (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Get Project Info

- **Node Name:** `Get Project Info`

Random Color

- **Node Name:** `Random Color`

On this page

OverviewPin SchemaInput PinsInternalsKey MethodsAuto-CleanupKnown IssuesHow It WorksUsage ExampleKey DependenciesSee Also