Scene: lights

lights
  • Returns a list of the lights in the scene.

Type:

  •  list [ KX_LightObject ]
Sample Code

################## get a list of the lights
 
# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get a list of the lights
lightList = scene.lights