SetTileSourceLightColor(location, int, int)

Sets the source light color for a tile.

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

Parameters

lTileLocation

The location of the tile to change the light color.

nSourceLight1Color

TILE_SOURCE_LIGHT_COLOR_*

nSourceLight2Color

TILE_SOURCE_LIGHT_COLOR_*


Description

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



Remarks

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


Known Bugs

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


Version

1.64

See Also

functions: SetFogColor
categories: Lighting Effects Functions
constants: TILE_SOURCE_LIGHT_* Constants


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