GetWeatherTypes

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 13:28, 20 October 2026 by QCherry (talk | contribs) (Release 0.1.9 / BUILD264 / Protocol42: availability and download setup; preserve experimental limits)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getWeatherTypes

Available from 0.1.9. Use matching updated clients and server.

Server Lua. Returns the weather names supported by this running server.

Syntax

local names = getWeatherTypes()

Parameters and returns

No parameters. Returns a fresh 1-based array of 43 canonical strings in the current implementation. Aliases are not duplicate entries. Changing this table does not change the catalog or weather. Use names rather than persisting numeric array positions. Future versions may add entries; query instead of hard-coding the count.

Example

for _, name in ipairs(getWeatherTypes()) do
    outputDebugString(name)
end

See Weather catalog for every name and alias, and Weather for server-authoritative usage and rendering limits.