GetWeatherTypes

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 20:56, 19 October 2026 by QCherry (talk | contribs) (Complete upcoming 0.1.9 documentation: weather, crafting UI, world removal, doors and ladders; preserve release status)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getWeatherTypes

Available from 0.1.9 (upcoming; not yet publicly released). Not included in public 0.1.8. 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.