Logic case: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		 
 Tip:Use with logic_timer for extremely random events.
Tip:Use with logic_timer for extremely random events.
		
	
| mNo edit summary | |||
| Line 1: | Line 1: | ||
| [[File:logic_case.png|left|link=]] | [[File:logic_case.png|left|link=]] | ||
| {{base point|logic_case}} It compares an input to up to 16 configured values, firing a corresponding output if there is a match (on <code>InValue</code>), or fires a random output (on <code>PickRandom</code>). | |||
| {{clr}} | |||
| {{bug|This entity will not recognize [[float]]s with trailing zeroes (like <code>0.50</code> or <code>1.00</code>). Always remove any.}} | {{bug|This entity will not recognize [[float]]s with trailing zeroes (like <code>0.50</code> or <code>1.00</code>). Always remove any.}} | ||
Revision as of 17:23, 26 July 2011

Template:Base point It 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).
 Tip:Use with logic_timer for extremely random events.
Tip:Use with logic_timer for extremely random events.Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- InValue <string>
- Compares the Input value to the case values, and fires the appropriate output, if any.
- PickRandom
- Fires 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 cases have been picked, at which point the shuffle starts over.
Outputs
- OnCase01 to OnCase16
- Fired when the input value equals the corresponding Case value.
- OnDefault
- Fired when the input value does not equal any of the Case values.
