lightrange

Range of a dynamic light. If this parameter is set above zero, the entity begins to emit light that affects all objects within the lightrange according to their material setting. The light color and brightness can be set through the entities' blue, green, red parameters.

Range:

0 .. 2000 (default: 0 - no light)

Type:

var

Remarks

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

See also:

SPOTLIGHT, LIGHT, material, d3d_lightres

► latest version online