CopyLight()

Syntax

Result = CopyLight(#Light, #NewLight)
Description
Creates a new light which is the exact copy of the specified light. All light attributes such as: color, specular color, position etc. are duplicated.

Parameters

#Light The light to copy.
#NewLight A number to identify the new light. #PB_Any can be used to auto-generate this number.

Return value

Nonzero if the light was successfully duplicated, zero otherwise. If #PB_Any was used for the #NewLight parameter then the generated number is returned on success.

Supported OS

All

Light Index - CreateLight() ->