255 doesn't seem to work for me.
'>
I tested with my own function:
void SetAreaSourceLightColor(object oArea, int iColor1, int iColor2)
{
vector vTile;
location lTile;
float fH = IntToFloat(GetAreaSize(AREA_HEIGHT, oArea));
float fW = IntToFloat(GetAreaSize(AREA_WIDTH, oArea));
float fX = 0.0;
float fY = 0.0;
while ((fX < fW) && (fY < fH))
{
vTile = Vector(fX, fY, 0.0);
lTile = Location(oArea, vTile, 0.0);
SetTileSourceLightColor (lTile, iColor1, iColor2);
fX = fX + 1.0;
if(fX >= fW)
{
fY = fY + 1.0;
fX = 0.0;
}
}
RecomputeStaticLighting(oArea);
}
It just turns the torches to a redish orange color.
Modifié par GhostOfGod, 23 mai 2012 - 08:33 .