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
Get Ultrasonic Readings (Flowgraph Node)Create Ultrasonic Sensor (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 Extensionsflowgraphnodestech

Create Ultrasonic Sensor (Flowgraph Node)

- **Node Name:** `Create Ultrasonic Sensor`

Overview

  • Node Name: Create Ultrasonic Sensor
  • Category: once_instant
  • File: extensions/flowgraph/nodes/tech/setupUltrasonicSensor.lua

Sets up an ultrasonic sensor on a vehicle and returns its ID.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberID of the vehicle to attach the sensor to
widthnumberWidth of the sensor (default: 50)
heightnumberHeight of the sensor (default: 50)

Output Pins

PinTypeDescription
sensorIdnumberID of the created sensor

Behavior

  • workOnce() - Creates an ultrasonic sensor on the specified vehicle (or player vehicle if vehId is nil). Passes width/height as a size array. Returns the sensor ID.

How It Works

  1. Place this node and connect a vehicle ID (or leave blank for the player vehicle).
  2. Optionally set width and height dimensions.
  3. On first execution, creates the sensor and outputs its ID.
  4. Use the sensorId output with getUltrasonicReadings to poll data.
-- Internal call:
local vehId = self.pinIn.vehId.value or be:getPlayerVehicleID(0)
local args = {
  size = { width or 50, height or 50 }
}
local sensorId = extensions.tech_sensors.createUltrasonic(vehId, args)

Key Dependencies

  • extensions.tech_sensors.createUltrasonic() - Creates the sensor
  • be:getPlayerVehicleID(0) - Fallback vehicle ID

Additional Methods

C:init()

Initializes the node, setting up pins and default properties.


See Also

  • Get Ultrasonic Readings (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Get Ultrasonic Readings (Flowgraph Node)

- **Node Name:** `Get Ultrasonic Readings`

Load Project (Flowgraph Node)

- **Node Name:** `Load Project`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorHow It WorksKey DependenciesAdditional MethodsC:init()See Also