Getting current weather conditions?

Post » Wed Mar 26, 2014 10:58 pm

I want to add modifiers to my archery mod for accuracy.

I looked over the weather functions but I am not getting how this all works.

How would I dynamically (in a script) get the wind speed, rain fall level and snow fall level that is currently around the player?

User avatar
Amanda Furtado
 
Posts: 3454
Joined: Fri Dec 15, 2006 4:22 pm

Post » Wed Mar 26, 2014 9:13 pm

No clue about what SKSE might open up for you. However, you may find http://www.creationkit.com/GetClassification_-_Weather to be of use.

It would tell you if the current weather is snow, rainy, etc. I don't think you could find the specific wind speed, especially since it comes is gusts, if it's even measured in any capacity. SKSE may have some relevant stuff, but otherwise the best you could manage I think is to change depending on clear, cloudy (A bit windy?), rain (more windy?) or snow (more windy?).

User avatar
April D. F
 
Posts: 3346
Joined: Wed Mar 21, 2007 8:41 pm

Post » Wed Mar 26, 2014 9:17 pm

As far as I know, there are no functions related to rain amounts, the only wind related functions are SKSE functions, and they merely give you the direction.

You could implement specific changes on a per-weather basis as an alternative. However, that will obviously not support custom weather types added by other mods, and would be a pain to implement. AJV's solution is way more convenient to script, but probably a bit less accurate.

User avatar
Timara White
 
Posts: 3464
Joined: Mon Aug 27, 2007 7:39 am

Post » Wed Mar 26, 2014 6:08 pm

ok, right, but HOW is is used? Looking at that I saw it needed a form:

if SomeWeather.GetClassification() == 1

how do I get the current weather form (SomeWeather) from around the player?

Thanks.

User avatar
sam westover
 
Posts: 3420
Joined: Sun Jun 10, 2007 2:00 pm

Post » Wed Mar 26, 2014 11:40 am

I think http://www.creationkit.com/GetCurrentWeather_-_Weather would help you here. :thumbsup:
User avatar
Anna Watts
 
Posts: 3476
Joined: Sat Jun 17, 2006 8:31 pm


Return to V - Skyrim