Skip to content

SetMapSize

Write the map size in local lobby options.

options:SetMapSize(value)

Inputs: value is an integer map size. Use a documented public size (120, 144, 168, 200, 220, 240, or 480).

Output: true when the local lobby options write succeeds; otherwise false. This does not confirm replication or host acceptance.

Errors and unavailable states: A non-integer value raises a Lua argument error. An unavailable lobby, active match, missing layout, or failed write returns false. Other integers are written as-is; game support is not verified.

Call on a fresh value from GetCurrentGameOptions(). See Lobby options overview.