Regular API function

simSetLightParameters / sim.setLightParameters

Description Sets various parameters of a light object. See also sim.getLightParameters.
C synopsis simInt simSetLightParameters(simInt objectHandle,simInt state,const simFloat* setToNULL,const simFloat* diffusePart,const simFloat* specularPart)
C parameters
objectHandle: handle of the light
state: bit-coded. for now, only bit 0 is used: 1=light on
setToNULL: not used, set to nullptr
diffusePart: red, green and blue component of the light's diffuse part. Can be nullptr
specularPart: red, green and blue component of the light's specular part. Can be nullptr
C return value
-1 if operation was not successful
Lua synopsis sim.setLightParameters(int objectHandle,int state,nil,table[3] diffusePart,table[3] specularPart)
Lua parameters
Similar to the C-function counterpart
Lua return values