Rain m (Water Overlay): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
When only one value is provided, it will be internally converted to a rain array. | When only one value is provided, it will be internally converted to a rain array. | ||
For example: when an area has a rain attribute defined with a value of 0.040 (m), and the total simulation time defined by the [[ | For example: when an area has a rain attribute defined with a value of 0.040 (m), and the total simulation time defined by the [[Weather (Water Overlay)|Weather]] is 10 hours, it is internally converted to the array: 36000 0.040. This means that a total of 0.04 m (40 mm) of rain will fall, evenly spread over 36000 seconds (10 hours). | ||
When you want the rain to fall in a shorter time period, for example the first hour, you would have to write: 3600 0.04 | When you want the rain to fall in a shorter time period, for example the first hour, you would have to write: 3600 0.04 | ||
To delay rainfall, use a sequence such as `1200 0 3600 0.04`: no rain falls for 20 minutes, followed by 40 mm over the next 40 minutes. | |||
[[File:Wateroverlay_rainfall_areas_dynamic.gif|left|frame|Dynamic rainfall defined by 101 | [[File:Wateroverlay_rainfall_areas_dynamic.gif|left|frame|Dynamic rainfall defined by 101 rain areas (visible in the mini-map midway). The animation shows the [[Last rain result type (Water Overlay)|last rain result]].]] | ||
{{article end | {{article end | ||
Latest revision as of 12:28, 7 July 2026
| Icon | Key | Unit | Range | Description | Default value |
|---|---|---|---|---|---|
| |
RAIN_M | end-time, m | An array of values, each pair indicating until what time that period of rain will last and how much rain will fall in that period. | n/a |
Single rain value to Rain Array
When only one value is provided, it will be internally converted to a rain array.
For example: when an area has a rain attribute defined with a value of 0.040 (m), and the total simulation time defined by the Weather is 10 hours, it is internally converted to the array: 36000 0.040. This means that a total of 0.04 m (40 mm) of rain will fall, evenly spread over 36000 seconds (10 hours).
When you want the rain to fall in a shorter time period, for example the first hour, you would have to write: 3600 0.04 To delay rainfall, use a sequence such as `1200 0 3600 0.04`: no rain falls for 20 minutes, followed by 40 mm over the next 40 minutes.

Notes
- A maximum of 10.000 values (5.000 pairs) can be defined.
- If the total simulation time extends beyond the final time definition of this Attribute, then for the remainder of the simulation the amount of rainfall in the Rain Area will be 0.
- You can inspect the amount of rainfall per timeframe using the Rain result type and Last Rain result type.




