num_lights

Number of active dynamic lights; also indicated in the 'count' column of the Statistics Panel. This number is increased when an entity in range begins to emit light through its lightrange; it is decreased when the lightrange is reset to zero or the entity is removed.

Range:

0 .. max_lights

Type:

var, read-only

Example:

PANEL* lights_indicator =
{
 	digits(0, 0, 5, digit_font, 1, num_lights); // show number of active lights
 	flags = SHOW;
} 

See also:

num_visents, max_lights, lighting, num_sounds

► latest version online