Skip to content

SetLocation

Write the map location ID in local lobby options.

options:SetLocation(value)

Inputs: value is an integer. The binding writes it without checking whether the game supports that value.

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.

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