API ReferenceSandbox
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
Properties5
Showing 5 properties
public static System.Collections.Generic.Dictionary`2<string,string> Sandbox.LaunchArguments.GameSettings { get; set; }
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; }
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; }
Preferred max players for multiplayer games. Used by games, but not enforced.
Returns:
int—public static Sandbox.Network.LobbyPrivacy Sandbox.LaunchArguments.Privacy { get; set; }
Default privacy for lobbies created on game start.
public static string Sandbox.LaunchArguments.ServerName { get; set; }
The hostname for the server.
Returns:
string—No results match this filter.