light root

 Function Name  Parameter  Return  Explain
getType None number Retrieves the type of the light.

Return Values

LIGHT_TYPE_POINT:   point
LIGHT_TYPE_SPOT :  spot
LIGHT_TYPE_DIRECTIONAL:  direction

setType number None  
getDirection None vec  
setDirection vec None  
getDiffuse None color  
setDiffuse color None  
getAmbient None color  
setAmbient color None  
getSpecular None color  
setSpecular color None  
getRange None number  
setRange number None  
getFalloff None number  
setFalloff number None  
getAttenuation None number
attenuation0,
attenuation1,
attenuation2
Retrieves the attenuation of the light.
setAttenuation number
attenuation0,
attenuation1,
attenuation2
None  
getTheta None number  
setTheta number None  
getPhi None number  
setPhi number None  
getStyle None dword Styles List

LS_DISABLE -- disabled
LS_DYNAMIC -- dynamic
LS_SPECULARSPOT -- specular spot
LS_REVERSE -- reverse
LS_SHAKE -- shake ( only valid for dynamic light )
LS_DYNAMICSHADOW -- cast dynamic shadow
LS_BAKED -- only for baking
LS_DYNAMICLIGHTMAP -- dynamic lightmap

setStyle dword None  
getChannel None dword Retrieves lighting channel
setChannel dword None Sets lighting channel
bind movable mov None bind self to specified movable.
getBind None nil or string get bind info (movable's name); if no bind, return nil.