The LightColor option changes the color of the light being added. The OptionValue is a color name.
Syntax
object.Construct(“CreateModule”)
object.Option(“Type”, “Light”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “Light”)
object.Option(“LightColor”, “OptionValue”)
object.Do() or object.DoOnce()
Example
This example shows how to change the light color.
CommandApi.Construct ("ModifyModule")
CommandApi.Option("Module", "Light")
CommandApi.Option ("LightColor", "Soft Pink")
CommandApi.Do()
Used by: Light
See Also