GetWeather(object)

From NWN Lexicon
Jump to navigationJump to search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Gets the current weather conditions for a given area

int GetWeather(
    object oArea
);

Parameters

oArea
Area to get the weather of

Description

Returns a WEATHER_* value, line from weathertype.2da, or WEATHER_INVALID in case of error (such as oArea not being valid, or an area).

Note: If called on an Interior area, this will always return WEATHER_CLEAR.


Version

This function was added in 1.80.8193.14 of NWN:EE.


See Also

functions: 

SetWeather

constants: 

WEATHER_* Constants



 author: Lilac Soul