blue

green

red

Color vector elements, gives the color for particles, for sky enties, or for emitted light by entities in combination with the lightrange parameter. Can be also used to tint entities in combination with the LIGHT flag.

Range:

0 .. 255 (default: 128)

Type:

var

Remarks

Example:

action blink()
{
  vec_set(my.blue,vector(255,255,255)); // white color
  while(1)
  {
    my.lightrange = 200; // lightsphere 200 quants
    wait(-1); // wait one second
    my.lightrange = 0; // no light
    wait(-1); // wait one second
   }
} 

See also:

d3d_lightres, spotlight, LIGHT, material, lightrange

► latest version online