GetWeather(object)

From NWN Lexicon
Jump to: navigation, 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

1.80.8193.14 - Added weathertypes.2da for custom weathers.

See Also

functions: 

SetWeather

constants: 

WEATHER_* Constants



 author: Lilac Soul