mem getweather
Current weather
Input:
Nothing
Output:
Array:
0 - Float current overcast
1 - Float target overcast
2 - Float overcast change rate
3 - Float current fog
4 - Float target fog
5 - Float fog change rate
6 - Float weather time
7 - Float time of next change
8 - Integer mission time
9 - Float clouds position
10 - Float clouds transparency
11 - Float clouds brightness
12 - Float clouds speed
13 - Float sky transparency
14 - Float current rain
15 - Float target rain
16 - Float rain change rate
17 - Integer time of next thunderbolt
18 - Array wind velocity
0 - Float X axis
1 - Float Y axis
2 - Float Z axis
19 - Integer time of last wind change
20 - Array gust of wind velocity
0 - Float X axis
1 - Float Y axis
2 - Float Z axis
21 - Integer gust end time
22 - Float sea level
23 - Float sea level with wave
24 - Float wave speed
25 - Float tide height in meters
26 - Float wave height in meters


Example:
_current = call loadFile ":mem getweather"


Description:
I recommend to use MemMulti.sqs script instead.

Reads weather condition values from the memory. Weather time (float) is different from thunderbolt/wind time (integer). Use mission time (integer) to compare with the latter.
Purpose:
To script effects depending on weather.


Version:
1.15
Demo:
Download
Source:
View


Topics:
What is Fwatch?
What's new?
Download & Startup

Presence Check
Using Commands
Input Commands Info
Animation Codes
Function & Script Library
Recommended Practices

Extras
Changelog
Source
Credits

Discuss Scripting
Post Request

Fwatch 1.16 Beta
Mod Manager