Logic case
Jump to navigation
Jump to search
Template:Base point It either compares an input to up to 16 configured values, firing a corresponding output if there is a match (on InValue
), or fires a random output (on PickRandom
).

Keyvalues
- Case01 to Case16
<string>
- The values to test against.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
InValue <string>
- Compare an input value to the case values, firing the appropriate output on the first match.
PickRandom
- Fire a random
OnCase
output with at least one connection. PickRandomShuffle
- Fires a random
OnCase
output with at least one connection, with no repeats until all have been picked.
Outputs
OnCase01
toOnCase16
- Fired when the input value equals the corresponding Case value.
OnDefault <string>
- Fired when the input value does not equal any of the Case values. Passes the value on.