SPOTLIGHT

This flag determines the behavior of light that the entity emits. If this flag is set, the light is a 30 degrees spot light in direction given by the entities' pan and tilt angles. If this flag is not set, the light is a point light that emits equally in all directions.

Type:

flag

Remarks:

Example:

action rotating_spot()
{
  my.lightrange = 1000; 
  set(my,SPOTLIGHT);
  my.SPOTLIGHT = ON;
  while(1) {
    my.pan += 2*time_step;
    wait(1);
  }
}

See also:

d3d_spotlightfalloff, d3d_spotlightcone, material, lightrange ► latest version online