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
Rally Mode CountdownRally Loop Synced CountdownRally Mode Create Ground Marker RouteRally Mode Flying FinishRally Mode Fire Rally EventRally Get Reset Budget RemainingRally Mode Handle Lap ChangeRally Mode Race Editor PathRally Debug DrawRally Move Vehicle ToRally Super CountdownRally Mode Register RaceRally Mode Session StartRally Mode Set NoteSearchRally Mode Reset Next PacenoteRally Mode Stage CompleteRally Mode Stage StartRally Mode Track RecoveryRally Track Stage TimeTrack Vehicle Distance to PositionStopped Near Plane?Stopped Near Position?

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 Extensionsflowgraphnodesgameplayrally

Rally Loop Synced Countdown

**File:** `flowgraph/nodes/gameplay/rally/countdownSynced.lua`

File: flowgraph/nodes/gameplay/rally/countdownSynced.lua

Description: Synchronized countdown that waits until the precise moment to start so the countdown finishes exactly at the scheduled event time. Accepts current epoch time and scheduled event time as inputs.

Category: repeat Tags: scenario

Data Fields

FieldDefault
self.data.bigFinishMsgtrue
self.data.testfalse -- Enable test mode
self.data.testScheduledEventTimetargetWallClockSecs - self.testEnvironmentStartTimeSecs
self.data.useImguifalse
self.data.useMessagesfalse
self.data.visualCountdowntrue
self.data.voiceCountdownfalse

Input Pins

NameTypeDescription
flowflowInflow for this node.
resetflowReset the countdown.
currentEpochTimenumberCurrent rally epoch time in seconds.
scheduledEventTimenumberScheduled event time in rally epoch (when countdown should finish).
warningTimestableArray of warning times in seconds before event.
durationnumberDuration of countdown.
maxAnnouncednumberMaximum number of announcements to make.
countdownMsgstringMessage to show before the countdown message; %d is the number.
finishMsgstringMessage to flash at the end of countdown; leave blank to use default translation string.
finishMsgDurationnumberDuration of finish message.
useAudioboolIf true, the pre-countdown will be played.

Output Pins

NameTypeDescription
flowflowOutflow for this node.
finishedflowTriggers when countdown has finished.
ongoingflowTriggers when countdown is in progress.
waitingflowTriggers when countdown is waiting for the scheduled time.
warningflowTriggers when each warning time is reached.
warningSecondsnumberThe warning time that was triggered.

Methods

  • C:init(mgr, ...)
  • C:_executionStarted()
  • C:_executionStopped()
  • C:reset()
  • C:stopTimer()
  • C:getTimeOfDay()
  • C:initTestMode()
  • C:calculateTestScheduledEventTime()
  • C:getCurrentEpochTime()
  • C:getScheduledEventTime()
  • C:formatTimeFromSeconds(timeSecs)
  • C:getWallClockTime()
  • C:shouldPlayVoiceCountdown()
  • C:shouldShowVisualCountdown()
  • C:startTimer()
  • C:enqueueSystemPacenote(pacenote_name)
  • C:enqueuePauseSecs(secs)
  • C:randomPauseSecs(min, max)
  • C:show(msg, big, duration)
  • C:drawStatusInfo()
  • C:countdown()
  • C:drawMiddle(builder, style)
  • C:work(args)

See Also

  • Rally Mode Countdown - Related reference
  • Rally Mode Create Ground Marker Route - Related reference
  • Rally Mode Flying Finish - Related reference
  • FlowGraph Guide - Guide

Rally Mode Countdown

**File:** `flowgraph/nodes/gameplay/rally/countdown.lua`

Rally Mode Create Ground Marker Route

**File:** `flowgraph/nodes/gameplay/rally/createRallyGroundMarker.lua`

On this page

Data FieldsInput PinsOutput PinsMethodsSee Also