Skip to content

SetStartingAge

Write the starting age in local lobby options.

options:SetStartingAge(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.