The LightXDirection option sets the light X direction. The OptionValue is set to any number. This option is only available when LightType is set to 0 or 2.
Syntax
object.Construct(“CreateModule”)
object.Option(“Type”, “Light”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “Light”)
object.Option(“LightXDirection”, “OptionValue”)
object.Do() or object.DoOnce()
Example
This example shows how to change the X direction for the light.
CommandApi.Construct ("ModifyModule")
CommandApi.Option("Module", "Light")
CommandApi.Option ("LightXDirection", "-0.5")
CommandApi.Do()
Used by: Light
See Also