GetTileSourceLight1Color

From NWN Lexicon
Revision as of 10:18, 21 August 2012 by Dood (talk | contribs) (Created page with " =GetTileSourceLight1Color(location)= Determines the color of the first light source for a tile. int  GetTileSourceLight1Color(     [[location |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



GetTileSourceLight1Color(location)

Determines the color of the first light source for a tile.

 int  GetTileSourceLight1Color(
     location  lTile
);

Parameters

lTile

The location of the tile.


Description

Returns the color (TILE_SOURCE_LIGHT_COLOR_*) for the source light 1 of the tile at lTile.



Remarks

This is another one of those counter intuitive functions. While you are affecting a specific tile that tile is being identified by a location. Also the location used to locate a tile is different than the location used to locate an object, a tile is located by the integer portion of a location in that tile / 10. Or for me I just remember that tiles are numbered in a zero based integer matrix, so the lower left tile in a 3X3 area would be located with a Location-object that has a member vector whose x and y = 0.


Version

1.22

See Also

functions: 

RecomputeStaticLighting

constants: 

TILE_SOURCE_LIGHT_* Constants



 author: Tom Cassiotis, editor: Michael Nork, additional contributor(s): Michael Nork