×
Create a new article
Write your page title here:
We currently have 276 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki

    Light: Difference between revisions

    Content added Content deleted
    m (very slight rewrite)
    m (changed programming section)
    Line 12: Line 12:


    The '''Light''' emits light when powered. It is commonly used in spaceships and planets (during nighttime) as it makes seeing easier, and is also used for some crafting recipes.
    The '''Light''' emits light when powered. It is commonly used in spaceships and planets (during nighttime) as it makes seeing easier, and is also used for some crafting recipes.

    === Programming ===
    A [[Microcontroller]] can change the color of a light by using Light:SetColor() and passing in a Color3 value, note that doing so too fast will cause the light to glitch.


    ==In-game Description==
    ==In-game Description==
    {{#invoke:GetPartInfo|getField|Description}}
    {{#invoke:GetPartInfo|getField|Description}}


    ==Configuration==
    == Configuration ==
    {{#invoke:GetPartInfo|getField|ConfigurationLarge}}
    {{#invoke:GetPartInfo|getField|ConfigurationLarge}}


    [[Category:Parts]]
    [[Category:Parts]]

    == Programming ==
    A [[Microcontroller]] can change the color of a light by calling <code>Light:SetColor(''Color 3 color'')</code>. A Color3 value is required. Note that doing so too fast will cause the light to glitch.

    * [https://github.com/iimurpyh/pilot-lua/wiki/Light#void-lightsetcolorcolor3-color Associated programming wiki page]

    Revision as of 20:44, 23 May 2024

    The Light emits light when powered. It is commonly used in spaceships and planets (during nighttime) as it makes seeing easier, and is also used for some crafting recipes.

    In-game Description

    "Emits light when powered with electricity. Can be colored in different ways, changing the light color"

    Configuration

    • Brightness(number) [0 - 2] - The brightness of the light.
    • LightRange(number) [1 - 60] - The range of the light.

    Programming

    A Microcontroller can change the color of a light by calling Light:SetColor(Color 3 color). A Color3 value is required. Note that doing so too fast will cause the light to glitch.

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Axenori • 3 days ago
  • Voivsone • 4 days ago
  • Axenori • 4 days ago
  • Axenori • 5 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.