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

Get Map Objects IDs by DynField (Flowgraph Node)

- **Node Name:** `Get Map Objects IDs by DynField`

Overview

  • Node Name: Get Map Objects IDs by DynField
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/util/getMapObjectsDynField.lua

Searches all map objects and returns a list of IDs for objects that contain a specific dynamic field.

Pin Schema

Input Pins

PinTypeDescription
dynamicFieldNamestringName of the dynamic field to search for

Output Pins

PinTypeDescription
objectstableArray of object IDs containing the specified dynamic field

Internals

Key Methods

MethodDescription
init(mgr)Empty initializer
_executionStarted()Resets oldPos
findObjectsWithDynField(name)Iterates all map objects and checks their dynamic fields
work()Calls findObjectsWithDynField and outputs results

How It Works

  1. Iterates all entries in map.objects to get object IDs.
  2. For each object ID, calls getObjectByID(objId) to get the object reference.
  3. Calls object:getDynamicFields() and checks each field name against the search term.
  4. Matching object IDs are collected into a table and output.

Note: This runs every frame (repeat_instant) and iterates all map objects, which can be expensive. Consider connecting a flow gate if performance is a concern.

Usage Example

-- Find all objects with a custom "checkpoint" dynamic field:
-- [Get Map Objects IDs by DynField] dynamicFieldName="checkpoint"
--   → objects → [For Each] → [Get Object] → [Process Checkpoint]

-- Find vehicles with a specific marker:
-- [Get Map Objects IDs by DynField] dynamicFieldName="isRaceParticipant"
--   → objects → [Get First Element] → [Focus Camera]

Key Dependencies

  • map.objects - map object registry
  • getObjectByID() - engine function to resolve object references
  • object:getDynamicFields() - returns list of dynamic field names on an object

See Also

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

Get Level Data (Flowgraph Node)

- **Node Name:** `Get Level Data`

Get Table Value By Key (Flowgraph Node)

- **Node Name:** `Get Table Value By Key`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also