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
Allow WalkingBlacklist WalkingCan Enter From WalkingCareer ActiveComplete ScenarioCountdownDecal CircleDecal LineDecal PathDecal SingleIs Walking BlacklistedGroundmarker Remaining DistanceGroundmarkersIs WalkingIs Walking EnabledMission DefaultsMultiseatDetect Acceleration At StartPointsBar PointsPointsBar ThresholdsRemove Other VehiclesToggle WalkingIn Zone
Activate All VehiclesActivate Vehicles By DistanceActivate VehicleAdd Vehicle Group To PoolAdd Vehicle (Pool)Create Vehicle PoolCycle PoolManage Vehicle PoolRemove Vehicle (Pool)

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 ExtensionsflowgraphnodesgameplayvehiclePool

Activate Vehicles By Distance

**File:** `flowgraph/nodes/gameplay/vehiclePool/activateByDistance.lua`

File: flowgraph/nodes/gameplay/vehiclePool/activateByDistance.lua

Description: Activates or deactivates all vehicles in the pool based on distance to a given point.

Category: repeat_instant Tags: traffic, budget, pooling Dependencies: core_vehicleActivePooling

Input Pins

NameTypeDescription
vehPooltableVehicle pool object; use the Create Pool node.
posvec3Focus position; if none given, uses the camera position.
distancenumberMaximum distance to keep vehicles activated.

Methods

  • C:work()

See Also

  • Activate All Vehicles - Related reference
  • Activate Vehicle - Related reference
  • Add Vehicle Group To Pool - Related reference
  • FlowGraph Guide - Guide

Activate All Vehicles

**File:** `flowgraph/nodes/gameplay/vehiclePool/activateAll.lua`

Activate Vehicle

**File:** `flowgraph/nodes/gameplay/vehiclePool/activateVehicle.lua`

On this page

Input PinsMethodsSee Also