Logic branch: Difference between revisions
Jump to navigation
Jump to search
m (Technical limitations) |
(Categorized) |
||
Line 60: | Line 60: | ||
==Additional Info== | ==Additional Info== | ||
* Values greater than 1 are treated as 0. | * Values greater than 1 are treated as 0. | ||
[[Category:Entities]] |
Revision as of 15:51, 6 July 2005
Entity Description
Entity Name: logic_branch
Tests a boolean value and fires an output based on whether the value is true or false. Use this entity to branch between two potential sets of events.
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 boolean value (0 or 1).
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 <bool>
- Set the boolean value without performing the comparison. Use this to hold a value for a future test.
- SetValueTest <bool>
- Set the boolean value and test it, firing OnTrue or OnFalse based on the new value.
- Toggle
- Toggle the boolean value between true and false.
- ToggleTest
- Toggle the boolean value and tests it, firing OnTrue or OnFalse based on the new value.
- Test
- Test the input value and fire OnTrue or OnFalse based on the 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.
- OnTrue <bool>
- Fired when the input value is true (nonzero).
- OnFalse <bool>
- Fired when the input value is false (zero).
Additional Info
- Values greater than 1 are treated as 0.