Logic case: Difference between revisions
Jump to navigation
Jump to search
m (→Outputs: {{activator}}) |
|||
Line 34: | Line 34: | ||
* '''OnCase''(01-16)''''' | * '''OnCase''(01-16)''''' | ||
: Fired when the input value equals the Case''(01-16)'' value. | : Fired when the input value equals the Case''(01-16)'' value. {{activator|activator}} | ||
* '''OnDefault''' | * '''OnDefault''' | ||
: Fired when the input value does not equal any of the Case values. | : Fired when the input value does not equal any of the Case values. {{activator|activator}} | ||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 20:07, 16 April 2006
Entity Description
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 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
- OnCase(01-16)
- Fired when the input value equals the Case(01-16) value. (!activator is the activator)
- OnDefault
- Fired when the input value does not equal any of the Case values. (!activator is the activator)