Category:Electrical Components: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
BTGamepedia>QuaternionMark
mNo edit summary
No edit summary
Line 1: Line 1:
{| class="wikitable"
Electrical Components are items that can be used to [[Wire|carry a signal]], perform [[Wiring_Components#Trigonometry|advanced]] [[Wiring_Components#Math|mathematical operations]], and [[Wiring_Components#Logic|much]], [[Wiring_Components#Misc|much]] more.
! class="header" |Name
! class="header" |Description
|-
|Wire
|Can be used to carry signals and power between items.
|-
|And Component
|If the two inputs receive a signal within a specific timeframe, the component sends a signal through the "signal_out" connector. The component also has a "set_output" connector, which can be used for setting the output signal to a desired value ("1" by default).
|-
|Or Component
|Same as the And Component, but the output signal is sent if either of the inputs receives a signal.
|-
|Not Component
|Has only one input and one output. If the component receives a signal "0", it sends out "1" through the output and vice versa.
|-
|Signal Check Component
|Compares the received signal with a specific string and outputs "1" if they are the same, otherwise outputs "0".
|-
|RegEx Find Component
|Similar to the signal check component, except that the signal is matched to a [[wikipedia:Regular_expression|regular expression]] instead of a string.
|-
|Oxygen Detector
|Outputs a value from 0 to 100 depending on the air quality in the room.
|-
|Light Component
|Has two inputs: "toggle" and "set_state". Toggle turns the light on/off whenever it receives any signal other than "0", set_state turns the light off if it receives "0" and on if it receives any other signal.
|}

Revision as of 06:27, 23 October 2020

Electrical Components are items that can be used to carry a signal, perform advanced mathematical operations, and much, much more.