Logic compare
Jump to navigation
Jump to search
Entity Description
Entity Name: logic_compare
Compares an input value to another value. If the input value is less than the compare value, the OnLessThan output is fired with the input value. If the input value is equal to the compare value, the OnEqualTo output is fired with the input value. If the input value is greater than the compare value, the OnGreaterThan output is fired with the input value.
Entity Values
Keys
- Name targetname <target_source>
- The name that other entities refer to this entity by.
- Initial value InitialValue <integer>
- Initial value for the input value.
- Compare value CompareValue <integer>
- The value to compare against.
Inputs
- Kill
- Removes this entity from the world.
- KillHierarchy
- Removes this entity and all its children from the world.
- AddOutput <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Adds an entity I/O connection to this entity. Very dangerous, use with care
- FireUser1
- Causes this entity's OnUser1 output to be fired.
- FireUser2
- Causes this entity's OnUser2 output to be fired.
- FireUser3
- Causes this entity's OnUser3 output to be fired.
- FireUser4
- Causes this entity's OnUser4 output to be fired.
- SetValue <float>
- Set the value that will be compared against the compare value.
- SetValueCompare <float>
- Set the value that will be compared against the compare value and performs the comparison.
- SetCompareValue <float>
- Set the compare value.
- Compare
- Force a compare of the input value with the compare value.
Outputs
- OnUser1
- Fired in response to FireUser1 input.
- OnUser2
- Fired in response to FireUser2 input.
- OnUser3
- Fired in response to FireUser3 input.
- OnUser4
- Fired in response to FireUser4 input.
- OnLessThan <float>
- Fired when the input value is less than the compare value. Sends the input value as data.
- OnEqualTo <float>
- Fired when the input value is equal to the compare value. Sends the input value as data.
- OnNotEqualTo <float>
- Fired when the input value is different from the compare value. Sends the input value as data.
- OnGreaterThan <float>
- Fired when the input value is greater than the compare value. Sends the input value as data.
Additional Info
- Note the difference between the SetValueCompare and SetCompareValue inputs.