LaunchArgumentsclass

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

objectLaunchArguments
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 string Sandbox.LaunchArguments.ServerName { get; set; }PUBLICSTATICGETSET

The hostname for the server.

Returns:string

On this page