API ReferenceGE Extensionsflowgraphnodesutil
Hide Loading Screen (Flowgraph Node)
- **Node Name:** `Hide Loading Screen`
Overview
- Node Name:
Hide Loading Screen - Category:
once_instant - File:
extensions/flowgraph/nodes/util/hideLoadingScreen.lua
Hides the loading screen after a level has finished loading. Does nothing if no level is currently loading. Typically used with the Load Level node when customLoadingScreen is enabled.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
finished | flow | Fires when the loading screen has fully faded out |
Internals
Key Methods
| Method | Description |
|---|---|
init() | Disables clearOutPinsOnStart |
workOnce() | Notifies the level module that loading is finished, fades out the loading screen |
work() | Checks if loading is complete; sets finished to true when done |
How It Works
workOnce()callsself.mgr.modules.level:finishedLevelLoading()to notify the flowgraph level module.- Immediately calls
server.fadeoutLoadingScreen(true)to begin the fadeout. work()continues running each frame, checkingself.mgr.modules.level.isLoadingLevel.- Once loading is no longer in progress, sets the
finishedoutput totrue.
Usage Example
-- Use with Load Level when customLoadingScreen is enabled:
-- [Load Level] customLoadingScreen=true
-- → flow → [Do Setup Work While Loading...]
-- → flow → [Hide Loading Screen]
-- → finished → [Continue Gameplay]Key Dependencies
self.mgr.modules.level:finishedLevelLoading()- signals level loading completionserver.fadeoutLoadingScreen(true)- engine function to fade out the loading screen
See Also
- Route Distance (Flowgraph Node) - Related reference
- Closest Road (Flowgraph Node) - Related reference
- Custom Lua (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide