SetAreaLightDirection(int, vector, object, float)

From NWN Lexicon
Revision as of 07:34, 19 April 2023 by Shadguy (talk | contribs) (first version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Sets the light direction of origin in the area specified.

void SetAreaLightDirection(
    int nLightType,
    vector vDirection,
    object oArea=OBJECT_INVALID,
    float fFadeTime = 0.0


The light type returned. Valid values are the AREA_LIGHT_DIRECTION_* constants.
specifies the direction of origin of the light type, i.e. the direction the sun/moon is in from the area.
The area to query for light direction.
If fFadeTime is above 0.0, it will fade to the new color in the amount of seconds specified.


Sets the light direction of origin in the area specified. If no valid area (or object) is specified, it uses the area of caller. If an object other than an area is specified, will use the area that the object is currently in.


Information icon.png This section of the article is a stub. You can help the NWN Lexicon by expanding it.


This function was added in 1.86.8193.35 of NWN:EE.


Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.

See Also

constants:  AREA_LIGHT_DIRECTION_* Constants

GetAreaLightColor() GetAreaLightDirection() SetAreaLightColor()

 author: Shadguy