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
Controls Action NodeControls Reset NodeCustom Trigger NodeOn BeamNG TriggerOn Mission EndedOn Update

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 Extensionsflowgraphnodesevents

Custom Trigger Node

- **File:** `flowgraph/nodes/events/customizedTriggerBox.lua`

Overview

  • File: flowgraph/nodes/events/customizedTriggerBox.lua
  • Name: Custom Trigger
  • Category: repeat_instant

Creates a runtime trigger (box or sphere) that detects vehicle enter/exit/inside/outside. Only works with a single vehicle ID at a time.

Pin Schema

DirTypeNameDescription
invec3positionPosition of the trigger.
inquatrotationOrientation (if box).
innumber/vec3scaleScale of the trigger.
innumbervehIdTarget vehicle ID.
outflowenterImpulse: triggers once on vehicle enter.
outflowinsideFlow while vehicle is inside.
outflowoutsideFlow while vehicle is outside.
outflowexitImpulse: triggers once on vehicle exit.
outnumbervehIdThe vehicle this trigger is for.

Legacy Pins

  • vehicleId → vehId (both in and out)

Data Properties

PropertyDefaultDescription
highPrecisionfalseUse 4 OOBB corner points instead of single position.
debugfalseDraw debug visualization of the trigger volume.

Trigger Types

Selectable via custom properties: Box (default) or Sphere.

Key Methods

MethodDescription
checkIntersections()Tests vehicle points against trigger volume (OBB or ellipsoid).
work()Rebuilds trigger when inputs change, checks intersections, sets output pins.
drawCustomProperties()ImGui combo for trigger type selection.
_onSerialize(res) / _onDeserialized(res)Persists trigger type.

See Also

  • Controls Action Node - Related reference
  • Controls Reset Node - Related reference
  • on BeamNGTrigger Node - Related reference
  • FlowGraph Guide - Guide

Controls Reset Node

- **File:** `flowgraph/nodes/events/controlsReset.lua`

On BeamNG Trigger

- **File:** `flowgraph/nodes/events/onBeamNGTrigger.lua`

On this page

OverviewPin SchemaLegacy PinsData PropertiesTrigger TypesKey MethodsSee Also