
type
- Get/set the type of light
- integer
- Spot: 0
- Sun: 1
- Point: 2
Note:
- Point, Spot and Sun lights.

Sample Code
################## get the type of light
# import bge
import bge
# get current scene
scene = bge.logic.getCurrentScene()
# get a list of the lights in the scene
lightList = scene.lights
# get point light named TableLamp
light = lightList["TableLamp"]
# get the type of light
kind = light.type
Sample Code
################## set the type of light
# import bge
import bge
# get current scene
scene = bge.logic.getCurrentScene()
# get a list of the lights in the scene
lightList = scene.lights
# get point light named TableLamp
light = lightList["TableLamp"]
# set light type to Sun
light.type = 1