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
Collection Marker (Flowgraph Node)Custom Lua Command (Flowgraph Node)Get Object Field (Flowgraph Node)Get Player Vehicle ID (Flowgraph Node)Get Point on Decalroad (Flowgraph Node)Show/Hide Object (Flowgraph Node)ID by Name (Flowgraph Node)Keep Prefab (Flowgraph Node)Particle Emitter (Flowgraph Node)Point on Decalroad (Flowgraph Node)Raceline Parking (Flowgraph Node)Raycast (Flowgraph Node)Parking Markers / Rect Marker (Flowgraph Node)Reload Collision (Flowgraph Node)Reload Nav Graph (Flowgraph Node)Remove Prefab (Flowgraph Node)Reset Prefab (Flowgraph Node)Set Object Field (Flowgraph Node)Sevensegment Display (Flowgraph Node)Single Marker (Flowgraph Node)Spawn Light / SpotLight (Flowgraph Node)Spawn Prefab (Flowgraph Node)Spawn TSStatic (Flowgraph Node)Store Statics (Flowgraph Node)Track Prefab (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 Extensionsflowgraphnodesscene

Collection Marker (Flowgraph Node)

- **Node Name:** `Collection Marker`

Overview

  • Node Name: Collection Marker
  • Category: repeat_instant
  • Author: BeamNG
  • File: extensions/flowgraph/nodes/scene/collectionMarker.lua

Creates a floating, rotating, colorable BeamNG-themed collectible token in the 3D scene. The marker bobs up and down and spins continuously.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node
resetflow (impulse)Removes the marker
posvec3World position of the marker
colornumber or colorOptional coloring. Number 0-1 blends from Orange to Green. Also accepts RGBA color table

Output Pins

PinTypeDescription
flowflowOutflow for this node

Behavior

  • work() - Each frame while flow is active:
    1. On first frame, creates a TSStatic object using art/shapes/collectible/s_collect_BNG.dae at scale 2x, plus a PointLight.
    2. Updates position with a sinusoidal vertical bob (sin(time * 1.5) * 0.15).
    3. Applies continuous Y-axis rotation (time * 1.75 radians).
    4. Applies color: if a number (0-1), maps through rainbowColor for an orange-to-green gradient. If an RGBA table, applies directly.
    5. Updates the point light to match the marker color with radius 3.
  • hideMarker() - Deletes both the TSStatic marker and the PointLight.
  • _executionStopped() / destroy() / onClientEndMission() - All call hideMarker() for cleanup.

Internals

  • self.marker - The TSStatic collectible mesh object
  • self.light - The PointLight that illuminates the marker
  • Uses self.mgr.modules.timer.globalTime.real for animation timing
  • Color number mapping uses rainbowColor(36, (0.8 - 0.75*clr) * 12, 1)

Key Dependencies

  • createObject('TSStatic') - Creates the 3D mesh object
  • worldEditorCppApi.createObject("PointLight") - Creates the light
  • rainbowColor() - Color gradient utility
  • quatFromEuler() - Rotation from euler angles

How It Works

The node manages a collectible-style 3D token that hovers and spins at a given position. It's designed for collectathon gameplay - the marker uses the BeamNG collectible mesh and glows with a configurable color. The sinusoidal bob and constant spin create an eye-catching floating effect. Cleanup is thorough, with deletion on stop, destroy, and mission end.

Example Usage

-- Place collectible tokens around a map
-- Wire pos from scene objects or hardcoded positions
-- Use color number 0.0 (orange) through 1.0 (green) for difficulty/value indication
-- Wire reset impulse to remove the marker when collected

Additional Methods

C:init(mgr, ...)

Initializes the node, setting up pins and default properties.

Parameters:

  • mgr
  • ...

See Also

  • Custom Lua Command (Flowgraph Node) - Related reference
  • Get Object Field (Flowgraph Node) - Related reference
  • Get Player Vehicle ID (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Stop Replay (Flowgraph Node)

- **Node Name:** `Stop Replay`

Custom Lua Command (Flowgraph Node)

- **Node Name:** `Custom Lua Command`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorInternalsKey DependenciesHow It WorksExample UsageAdditional MethodsC:init(mgr, ...)See Also