Page MenuHomeFeedback Tracker

Server communicate with lobby
New, NormalPublic

Description

It would be nice if server could send some data to clients in lobby so lobby controls could be effected on the fly

For example mission could have mission parameter to allow either east vs west game mode or east vs west vs resistance game mode. When admin selects the mission parameter and closes the parameter dialog the information would be sent to clients so that client knows which game mode is being selected and script could react to that enabling or disabling the resistance side button

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Multiplayer
Steps To Reproduce

Tips on how to run code in lobby

One way to run code everytime user opens the lobby is to overwrite the onLoad code for the lobby display. like this:

class RscDisplayMultiplayerSetup
{
 onLoad = " [] spawn (uinamespace getvariable 'lobbyTest'); "; // Normally you would also like to preserve the existing code here
};

this will call the lobbyTest function predefined in uinamespace like so:

with uinamespace do
{
lobbyTest =
{
diag_log "lobbyTest called"; 
};
};

Event Timeline

gc8 created this task.Jul 22 2024, 2:50 PM
gc8 updated the task description. (Show Details)
gc8 edited Steps To Reproduce. (Show Details)