Mike (CNDG) (Talk | contribs) (Created page with "Light sources within the Space scene. =Properties= {{ScriptFunction|bool|Enabled|{ get; set;}|Enable/Disable this light.}} {{ScriptFunction|float|Range|{ get; set;}|Get/Set t...") |
Mike (CNDG) (Talk | contribs) |
||
Line 2: | Line 2: | ||
=Properties= | =Properties= | ||
− | {{ScriptFunction|bool|Enabled|{ get; set;}|Enable/Disable this light.}} | + | {{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.}} | + | {{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)}} | + | {{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|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.}} | {{ScriptFunction|SLightType|Type|{ get; set;}|Get/Set the type of light this source is.}} |
Light sources within the Space scene.
Enable/Disable this light.
Get/Set the effective range of the light source.
Get/Set the intensity of the light source. (Multiplied with the light color)
Get/Set the color of the light.
Get/Set the type of light this source is.
|