TPG.Maps.Load(mapName)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Load a map's config and make it current. Merges the map's entry over TPG.Maps.Default, applies the limit multipliers, and (on the server) overlays admin-placed custom points. A map with no entry gets the defaults, which are generic enough to be playable but are not tuned for it. Called from tpg.rounds.Setup each round, so editing a map config and restarting the round is enough to see the change.
Parameters
| Name | Type | Description |
|---|---|---|
mapName? | string | Defaults to the running map. |
Returns
| Type | Description |
|---|---|
table | The merged config, also stored as `TPG.Maps.Current`. |
Examples
No examples available.
Used In
No usages found in the codebase.