|
|
(3 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
− | Light sources within the Space scene.
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/slight |
− | | + | |
− | =Properties=
| + | |
− | {{ScriptFunction|bool|Enabled|{ get; set;}|Enable/Disable this light.|5=-- Disable this object's Light Source --<br>Space.Host.ExecutingObject.Light.Enabled = false;}}
| + | |
− | {{ScriptFunction|float|Range|{ get; set;}|Get/Set the effective range of the light source.|5=-- Change the range of the Light --<br>Space.Host.ExecutingObject.Light.Range = 8.0;}}
| + | |
− | {{ScriptFunction|float|Intensity|{ get; set;}|Get/Set the intensity of the light source. (Multiplied with the light color)|5=-- Get the intensity of the Light --<br>Space.Log("Intensity: " .. Space.Host.ExecutingObject.Light.Intensity);}}
| + | |
− | {{ScriptFunction|SVector|Color|{ get; set;}|Get/Set the color of the light.}}
| + | |
− | {{ScriptFunction|SLightType|Type|{ get; set;}|Get/Set the type of light this source is.}}
| + | |
− | | + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 06:02, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/slight