2to4 Decoder compares input values A and B to see if they are true or false (on or off). The node can trigger four different events based on the combination of the input values.
The numerical value that represents true is 1, and the value that represents false is 0.
The result can be one of the following four: | |
---|---|
Result 1 | A off & B off |
Result 2 | A on & B off |
Result 3 | A off & B on |
Result 4 | A on & B on |
Execute | Executes the node |
↳ On Start | Executes the node at the start of the game |
Enabled | Enable or disable the node. Disabled nodes cannot be executed |
Value A / B | Values to be compared. If an input is 0, it stands for false (off). If an input is 1, it stands for true (on) |
Output: Both Off | Sends a signal when both A and B are false (0). |
Output: Value A On | Sends a signal when A is true (1) and B is false (0) |
Output: Value B On | Sends a signal when A is false (0) and B is true (1) |
Output: Both On | Sends a signal when both A and B are true (1) |
Here's a link to a demo that shows how to use the 2to4 Decoder node: