Content added Content deleted
(Page finished, good to go.) Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 11: | Line 11: | ||
}} |
}} |
||
The '''Light''' |
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== |
==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(''Color3 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] |
Latest revision as of 06:22, 24 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[edit | hide all | hide | edit source]
"Emits light when powered with electricity. Can be colored in different ways, changing the light color"
Configuration[edit | hide | edit source]
- Brightness(number) [0 - 2] - The brightness of the light.
- LightRange(number) [1 - 60] - The range of the light.
Programming[edit | hide | edit source]
A Microcontroller can change the color of a light by calling Light:SetColor(Color3 color)
. A Color3 value is required. Note that doing so too fast will cause the light to glitch.