Light Source Tutorial
A light source is a non-physical object that shines a light. Its light does not cast shadows (only the sun or the moon can) and can go through walls. It can be of one of these two types:
- A light point (glowing light source) is an all-directional light source, like a floating lightbulb, that emits light all around it.
- A light reflector, much like projectors or vehicle headlights, is a beam-shaped light that was introduced in 2.06 (see this example below).
Such light source is local to the computer where the script has been called; one player could see a light in the dark while another would not have such light "object" created.
Colour set via setLightAmbient determines the outer colour shone by the light source.
The flare is the "colour point" centre that emits light. It can be visible or invisible (set by setLightUseFlare).
The list of all light source commands can be found in the Lights command group category.
Create a Light Source
Set Light Colour
Set Flare Size
Set Flare Visibility
Set Light Brightness
Make light visible by day
Delete Light Source