Logic case
Jump to navigation
Jump to search
Entity Description
Entity Name: logic_case
Compares an input to up to 16 preset values. If the input value is the same as any of the preset values, an output corresponding to that value is fired.
For example: if Case01 is set to 2 and Case02 is set to 5, and the input value is 5, the OnCase02 output will be fired.
This entity can also be used to select from a number of random targets via the PickRandom input. One of the OnCase outputs that is connected to another entity will be picked at random and fired.
- The ideal entity for if you want randomized events.
- Use with Logic_timer for extremely random events.
Keyvalues
- Case(01-16)
- <string>
Inputs
- InValue <string>
- Compare the Input value to the case values, and fire the appropriate output, if any.
- PickRandom
- Fire a random OnCase output with at least one connection.
Outputs
- OnCaseN
- Fired when the input value equals the CaseN value.
- OnDefault
- Fired when the input value does not equal any of the Case values.