ArcBasicDocs

CreateLight

Creates a light (1 = directional, 2 = point, 3 = spot).

CreateLight ( [type][,parent] )

Parameters

type (optional)
1 for a directional light, which lights everything from one direction like the sun (only its direction matters); 2 for a point light, which shines in every direction from where it is, like a bulb; 3 for a spot light, which shines in a cone, like a torch.
parent (optional)
an entity to attach the light to, or 0 for none.

Description

Creates a light and gives back its handle. Turn and move it like any entity. Surfaces facing the light are lit, the rest get only AmbientLight.

See also