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).
Syntax
Section titled “Syntax”SetAreaRain(name, amount)| Parameter | Type | |
|---|---|---|
name |
string | the area |
amount |
number|nil | 0 .. 1, or nil |
Returns
Section titled “Returns”boolean - true; false and the reason
Example
Section titled “Example”SetAreaRain("Tavern", 0)See also
Section titled “See also”SetPlayerRain · SetRain · the The map’s areas group of the index
