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
| Field | Default |
|---|---|
self.data.bigFinishMsg | true |
self.data.test | false -- Enable test mode |
self.data.testScheduledEventTime | targetWallClockSecs - self.testEnvironmentStartTimeSecs |
self.data.useImgui | false |
self.data.useMessages | false |
self.data.visualCountdown | true |
self.data.voiceCountdown | false |
Input Pins
| Name | Type | Description |
|---|---|---|
flow | flow | Inflow for this node. |
reset | flow | Reset the countdown. |
currentEpochTime | number | Current rally epoch time in seconds. |
scheduledEventTime | number | Scheduled event time in rally epoch (when countdown should finish). |
warningTimes | table | Array of warning times in seconds before event. |
duration | number | Duration of countdown. |
maxAnnounced | number | Maximum number of announcements to make. |
countdownMsg | string | Message to show before the countdown message; %d is the number. |
finishMsg | string | Message to flash at the end of countdown; leave blank to use default translation string. |
finishMsgDuration | number | Duration of finish message. |
useAudio | bool | If true, the pre-countdown will be played. |
Output Pins
| Name | Type | Description |
|---|---|---|
flow | flow | Outflow for this node. |
finished | flow | Triggers when countdown has finished. |
ongoing | flow | Triggers when countdown is in progress. |
waiting | flow | Triggers when countdown is waiting for the scheduled time. |
warning | flow | Triggers when each warning time is reached. |
warningSeconds | number | The 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