API ReferenceGE Extensionsflowgraphnodesui
Set UI Race Checkpoints (Flowgraph Node)
- **Node Name:** `Set UI Race Checkpoints`
Overview
- Node Name:
Set UI Race Checkpoints - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/raceCheckpoints.lua - Author: BeamNG
Sets the UI race checkpoints display to show the current and maximum checkpoint count. Clears the display when no value is provided.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
cur | number | Current checkpoint. If not set, clears the app |
max | number | Maximum number of checkpoints |
How It Works
work()- Called every frame:- If
curis set:- Triggers
guihooks.trigger('WayPointChange', {current, count})for the waypoint HUD. - Sets generic mission data via
ui_apps_genericMissionData.setData()with:title:"missions.missions.general.checkpoint"(translation key)txt:"cur / max"formatted stringcategory:"raceCheckpoints"style:"text"order:100
- Triggers
- If
curis nil:- Triggers
guihooks.trigger('WayPointReset'). - Clears the generic mission data for category
"raceCheckpoints".
- Triggers
- If
Lua Code Example
-- Show checkpoint 3 of 10:
guihooks.trigger('WayPointChange', { current = 3, count = 10 })
ui_apps_genericMissionData.setData({
title = "missions.missions.general.checkpoint",
txt = "3 / 10",
category = "raceCheckpoints",
style = "text",
order = 100,
})
-- Clear checkpoint display:
guihooks.trigger('WayPointReset')
ui_apps_genericMissionData.setData({
category = "raceCheckpoints",
clear = true,
})Key Dependencies
guihooks.trigger('WayPointChange', ...)- Updates the waypoint HUDguihooks.trigger('WayPointReset')- Resets the waypoint HUDui_apps_genericMissionData.setData()- Generic mission data display system
See Also
- Medal / Auto Medal (Flowgraph Node) - Related reference
- Clear Messages (Flowgraph Node) - Related reference
- Context Translation (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide