SetTileSourceLightColor

From NWN Lexicon



Contents

[edit] SetTileSourceLightColor(location, int, int)

Sets the source light color for a tile.

void SetTileSourceLightColor(
    location lTileLocation,
    int nSourceLight1Color,
    int nSourceLight2Color
);

[edit] Parameters

lTileLocation

The location of the tile to change the light color.

nSourceLight1Color

TILE_SOURCE_LIGHT_COLOR_*

nSourceLight2Color

TILE_SOURCE_LIGHT_COLOR_*


[edit] Description

Set the source light color on the tile located at lTileLocation.



[edit] Remarks

You must call RecomputeStaticLighting() after calling this function in order for the changes to occur visually for the players.


[edit] Known Bugs

It is reported that it is almost impossible for torches (the source lights themselves) to turn off properly, if at all.


[edit] Version

1.64

[edit] See Also

functions: 

SetFogColor

constants: 

TILE_SOURCE_LIGHT_* Constants



 author: Tom Cassiotis, editor: Jasperre, additional contributor(s): Charles Feduke, Jasperre, Ruben
 

Personal tools
Categories