The client and server subsystems, their events and the game modes.
Get it with Get Game Instance → Get Subsystem (Vantix Menu Subsystem).
#Screens
| Function | What it does |
|---|
Show Screen(Screen) | StarterMenu, RealmBrowser, Settings or Loading. |
Hide Menu() | Hides the menu. |
Get Current Screen() | The screen that's showing. |
#Servers
| Function | What it does |
|---|
Refresh Servers() | Gets the list from the master server, plus ping. |
Get Realms() / Set Realms() | The server list. |
Get Selected Realm() | The selected server. |
Is Fetching Servers() | True while the list is loading. |
Connect To Server(Address, Password) | ip, ip:port or host:port. |
Disconnect() | Leaves the server. |
Set Player Name(Name) | The player's name. |
#Network
| Function | What it does |
|---|
Trigger Server Event(EventName, JsonArgs) | Calls a net event. JsonArgs is a JSON array, e.g. ["Hello!", 5]. |
#Loading
| Function | What it does |
|---|
Set Loading Progress(Progress01, StageText) | Your own progress (0-1). |
#Settings
| Function | What it does |
|---|
Get Setting Value(Key) / Set Setting Value(Key, Value, bApplyNow) | Read or change a setting. |
Apply Settings() / Reset Settings To Defaults() | Apply or reset. |
Keys: Preset, ResolutionScale, Upscaling, AntiAliasing, GlobalIllumination, Shadows, ViewDistance, Textures, Foliage, MotionBlur, FrameRate, WindowMode, Resolution, VSync, HDR.
#Events (bind in Blueprint)
| Event | When |
|---|
On Server Event(EventName, JsonArgs) | Lua called TriggerClientEvent. |
On Server Message(Text) | SendMessage or say. |
On Connection Failed(Text) | Wrong password, server full, timeout, invalid server key ... |
On Enter Realm(Realm) | The player joined a server. |
On Menu Action(Action) | A button in the menus. |
On Loading Finished() | The loading screen is done. |
On Setting Changed(Key, Value) | A setting changed. |
#FVantixRealm (struct)
Name, Region, Language, RealmType, Players, MaxPlayers, PingMs (-1 = unknown), Status, Description, Address, Port, QueryPort, Tags, Map, Version, bHasPassword, LogoUrl, BannerUrl, Id.
#Server: Vantix Server Subsystem
Only exists on dedicated servers.
| Function | What it does |
|---|
Trigger Lua Event(EventName, JsonArgs) | Event to all Lua resources. |
Send Client Event(PlayerId, EventName, JsonArgs) | Event to one client, or all with -1. |
Get Convar(Name, Default) | A value from server.cfg (never sv_licenseKey). |
Get Server Name() / Get Max Players() | Server info. |
Is Server Key Accepted() | True when the master server accepted the key (or there's no master server). |
#Game modes
| Game mode | Use it for |
|---|
VantixMenuGameMode | The menu level (shows the Starter Menu). |
VantixServerGameMode | The base for gameplay maps on dedicated servers. |