LIGHT
If this flag is set, the entity is illuminated by it's own light color (red,
green, blue)
even if it's lightrange is 0.
This way entities can be dynamically colored.
Type:
Flag
Example:
function flicker_red()
{
my.lightrange = 0; // don't illuminate the environment
//my.LIGHT = ON; // C-Script
set(my,LIGHT); // lite-C
while (1)
{
while (my.red < 255)
{
my.red += 10 * time_step;
my.red = min(my.red,255); // clip to 255
wait(1);
}
while (my.red > 0)
{
my.red -= 10 * time_step;
my.red = max(my.red,0); // clip to 0
wait(1);
}
}
}
See also:
red, green, blue , lightrange, UNLIT