The LightCutoff option changes the light cutoff angle. The OptionValue is set to any number between 0 and 90. This option is only available where the LightType is set to 2.
Syntax
object.Construct(“CreateModule”)
object.Option(“Type”, “Light”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “Light”)
object.Option(“LightCutoff”, “OptionValue”)
object.Do() or object.DoOnce()
Example
This example shows how to set the light cutoff angle.
CommandApi.Construct ("ModifyModule")
CommandApi.Option("Module", "Light")
CommandApi.Option ("LightCutoff", "30")
CommandApi.Do()
Used by: Light
See Also