MapSettingsclass

How the menu launches a game with maps. Stored in the project meta under "MapSettings".

object→MapSettings
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.MapSettings

Constructors1

Showing 1 constructors

Properties5

Showing 5 properties

public string Sandbox.MapSettings.DefaultMap { get; set; }PUBLICGETSET

The map package selected by default, e.g. facepunch.flatgrass. Leave empty to make players choose.

Returns:string—

public string Sandbox.MapSettings.MapTarget { get; set; }PUBLICGETSET

Leave empty to show maps made for this game. Or list the games whose maps you can load, e.g. facepunch.sandbox, facepunch.walker - or * for all maps.

Returns:string—

public bool Sandbox.MapSettings.NeedsMap { get; set; }PUBLICGETSET

Players have to choose a map before they can play.

Returns:bool—

public bool Sandbox.MapSettings.ShowChangeMap { get; set; }PUBLICGETSET

Show a Change Map option in the escape menu. Relaunches the game with the new map.

Returns:bool—

public bool Sandbox.MapSettings.UseCreateGameModal { get; set; }PUBLICGETSET

When pressing play, show a popup to configure max players, lobby privacy and the map.

Returns:bool—

On this page