Skip to content

SetAreaRain

The most rain a player inside an area sees.

0 keeps it dry - a roof or a ceiling built with the map editor lets no rain through on its own; nil gives the area the world’s rain again. Where areas overlap, the lowest counts. The player sees the rain capped wherever they look while they are inside (out of a window too). Kept in the map with the area (the editor’s area panel sets it too).

SetAreaRain(name, amount)
Parameter Type
name string the area
amount number|nil 0 .. 1, or nil

boolean - true; false and the reason

SetAreaRain("Tavern", 0)

SetPlayerRain · SetRain · the The map’s areas group of the index