CopyLight()
Syntax
Result = CopyLight(#Light, #NewLight)Description
Creates a #NewLight which is the exact copy of the specified #Light. All the #Light attributes like color, specular color, position etc.. are duplicated. If #PB_Any is used as '#NewLight' parameter, the new light number will be returned as 'Result'. If #NewLight was already created, it will be automatically freed and replaced by the new one.
Supported OS
Windows, Linux