LaunchArgumentsclass

These are arguments that were set when launching the current game. This is used to pre-configure the game from the menu

object→LaunchArguments
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.LaunchArguments

Properties5

Showing 5 properties

public static System.Collections.Generic.Dictionary`2<string,string> Sandbox.LaunchArguments.GameSettings { get; set; }PUBLICSTATICGETSET

The game settings to apply on join. These are a list of convars.

Returns:Dictionary<string,string>—

public static string Sandbox.LaunchArguments.Map { get; set; }PUBLICSTATICGETSET

The map to start with. It's really up to the game to use this

Returns:string—

public static int Sandbox.LaunchArguments.MaxPlayers { get; set; }PUBLICSTATICGETSET

Preferred max players for multiplayer games. Used by games, but not enforced.

Returns:int—

public static Sandbox.Network.LobbyPrivacy Sandbox.LaunchArguments.Privacy { get; set; }PUBLICSTATICGETSET

Privacy for lobbies created on game start. The more private of this and the lobby's own config wins, so neither the menu nor the game can open up a lobby the other made private. If not explicitly set, lobbies use their own config.

Returns:LobbyPrivacy—

public static string Sandbox.LaunchArguments.ServerName { get; set; }PUBLICSTATICGETSET

The hostname for the server.

Returns:string—

On this page