Wired Relay

From GMod Wiki

Jump to: navigation, search
Wire Icon.png Wiremod ToolYarin Kaul Icon ArrowSquare32 left.png Back
Information 16x16.png Function:A configurable multi-pole, multi-throw relay.
link=User:{{{author}}} Primary fire:Spawns a Relay.
Wrench orange.png Secondary fire:Updates an existing relay
Link break.png Reload:No action
Page white text.png Notes:Coded by TAD2020

Brief

Switches between many sets of inputs.

3PDT.PNGA 3 pole, dual throw relay. It has 7 inputs and 3 outputs. Inputs 1-6 are 2 sets, set 1 is {1A, 1B, 1C} and set 2 is {2A, 2B, 2C}. The 7th input is the throw, a value of 1 connects the outputs to set 1, 2 to set 2, and 0 is open (all outputs = 0).

Instructions

Choose the number of poles (outputs) and the number of throws (sets of inputs). Optionally, numpad keys can be defined with or without toggle. Can also choose which set to normally close to when keys is not pressed (default is open).

Inputs

Many. As few as 1(+1), as many as 80(+1). 1-80 are the [throw #][pole letter] (1A to 10H) inputs and +1 to set the throw.

Outputs

One to 8 poles (letters A to H)


Useful hints

Used it to switch between several sets of inputs. Works like an if..then..else gate but with many elseifs with many returns.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox