API ReferenceSandbox
MapSettingsclass
How the menu launches a game with maps. Stored in the project meta under "MapSettings".
object→MapSettings
Constructors1
Showing 1 constructors
public MapSettings()
No results match this filter.
Properties5
Showing 5 properties
public string Sandbox.MapSettings.DefaultMap { get; set; }
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; }
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; }
Players have to choose a map before they can play.
Returns:
bool—public bool Sandbox.MapSettings.ShowChangeMap { get; set; }
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; }
When pressing play, show a popup to configure max players, lobby privacy and the map.
Returns:
bool—No results match this filter.