Syntax

dbSetObjectLight(ObjectID, Flag)

Description

This command will set the light state of the specified object. Setting the light to one will ensure the object is affected by any lights in the 3D scene. If the object uses diffuse based colour, deactivating the light source will also deactivate the ability of the object to show its colour as it uses the light to calculate the diffuse result.

See Also

dbSetObject, dbSetObjectColor, dbSetObjectDiffuse