Light Component

From Official Barotrauma Wiki
Jump to: navigation, search
Data is up-to-date
Last updated for version 1.0.7.0
Last mentioned in changelog 1.0.7.0
The current game version is 1.5.9.1
Light Component

Inventory icon


Sprite
General purpose lighting. Requires no electrical input.
Crafting
Fabricator
Requirements
Skill: Electrical: 20
Deconstructor Yield
Store
Minimum Difficulty 5%
Base Price 110 mk
Outposts
OutpostOutpost Buy Sell
Habitation OutpostHabitation 110 mk 33 mk
ColonyColony N/A 33 mk
Research OutpostResearch 137 mk 41 mk
Military OutpostMilitary 110 mk 33 mk
Mining OutpostMining 110 mk 33 mk
Medical MerchantMedical Merchant N/A 33 mk
Engineer MerchantEngineer Merchant 99 mk 29 mk
Armory MerchantArmory Merchant N/A 33 mk
Children of The HonkmotherClown Merchant N/A 33 mk
The Church of HuskHusk Merchant N/A 33 mk
Technical
Identifier lightcomponent
Categories Electrical
Tags smallitem,lightcomponent

Light Component

Inventory icon


Sprite
General purpose lighting. Requires no electrical input.
Crafting
Fabricator
Requirements
Skill: Electrical: 20
Deconstructor Yield
Store
Minimum Difficulty 5%
Base Price 110 mk
Outposts
OutpostOutpost Buy Sell
Habitation OutpostHabitation 110 mk 33 mk
ColonyColony N/A 33 mk
Research OutpostResearch 137 mk 41 mk
Military OutpostMilitary 110 mk 33 mk
Mining OutpostMining 110 mk 33 mk
Medical MerchantMedical Merchant N/A 33 mk
Engineer MerchantEngineer Merchant 99 mk 29 mk
Armory MerchantArmory Merchant N/A 33 mk
Children of The HonkmotherClown Merchant N/A 33 mk
The Church of HuskHusk Merchant N/A 33 mk
Technical
Identifier lightcomponent90
Categories Electrical
Tags smallitem,lightcomponent
Light Component

Inventory icon


Sprite
General purpose lighting. Requires no electrical input.
Crafting
Fabricator
Requirements
Skill: Electrical: 20
Deconstructor Yield
Store
Minimum Difficulty 5%
Base Price 110 mk
Outposts
OutpostOutpost Buy Sell
Habitation OutpostHabitation 110 mk 33 mk
ColonyColony N/A 33 mk
Research OutpostResearch 137 mk 41 mk
Military OutpostMilitary 110 mk 33 mk
Mining OutpostMining 110 mk 33 mk
Medical MerchantMedical Merchant N/A 33 mk
Engineer MerchantEngineer Merchant 99 mk 29 mk
Armory MerchantArmory Merchant N/A 33 mk
Children of The HonkmotherClown Merchant N/A 33 mk
The Church of HuskHusk Merchant N/A 33 mk
Technical
Identifier lightcomponent
Categories Electrical
Tags smallitem,lightcomponent


The Light Component is an electrical component used to provide lighting, without using power.

It is most commonly used for showing the state of Installations or other Electrical items.

Color Setting

Color can be set manually or by sending a signal to the Set_Color pin.

Manual
When rewiring any light or lamp, the color selector is shown at the bottom right of the screen. RGBA (red, green, blue, alpha) values can be set in decimal values ranging from 0 to 255.
The first three settings, Red, Green and Blue, determine the color; setting R: 255, G: 0 and B: 0 will result in a red light. R: 255, G: 165 and B: 0 will result in an orange light. See Web Colors.
The fourth setting, Alpha, will effectively translate into the light's intensity; 255 being the brightest, and 0 being equivalent to the light turned off.

Signal
A signal can be sent to the Light Component's Set_Color input. The value can be decimal (like for the manual setting) if received from a Memory or Color Component, or hexadecimal or float if received from a Memory Component.
For example, to produce turquoise light with about half the maximum intensity...

  • Decimal
...an input of 64,224,208,127 is required.
  • Hexadecimal
...an input of #40E0D07F is required.
  • Float
...an input of 0.25,0.88,0.82,0.5 is required.

In all cases, the Alpha value can be omitted, and will then automatically be interpreted as if set to the maximum: decimal: 255, hexadecimal: FF or float: 1.

(click to enlarge)
The Typhon 2's "low battery" indicator, with components spread out, isolated and described. The 2 batteries charge % are added, then divided by 2 to get the total battery %. This value is then compared to 5. If it is greater than 5, 0 is sent to the Red input and 255 to the Green input of the Color Component. Otherwise (if it is lower or equal to 5), Red=255, Green=0. In all cases, Blue is set to 0 and Alpha is set to 255. The light's state (on/off) is set by the Navigation Terminal (going through a relay component), so that it only turns on when "backup batteries" are on.
Connection Panel for Light Component
Hover over pins to see their descriptions.
Toggle_State
Set_State
Set_Color
Toggles between on and off when a signal of 1 is supplied.
Sets current state of component to 1(on) or 0(off).
Sets the color of the light.
Requires: Screwdriver
v·d·e·h
Electrical Components
Alarms
Detectors
Interactable
Wiring Components
Misc


v·d·e·h
Installations
Submarine Weapons
Small Turrets
Large Turrets
Loaders
Other
Navigation
Machines
Electrical
Structure
Other
Alien