This article's documentation is for anything that uses the Source engine. Click here for more information.

logic_branch_listener

From Valve Developer Community
Jump to: navigation, search
class hierarchy
CLogicBranchList defined in logicentities.cpp
CLogicalEntity
CServerOnlyEntity
CBaseEntity

logic_branch_listener is a point entity available in all Source Source games.

It contains a list of logic_branch entities and fires outputs when the state of any of the logic_branches changes. This entity is used to fire an event when a set of conditions are all satisfied.

Keyvalues

Logic Branch 01 (Branch01) to Logic Branch 16 (Branch16) <targetname>
The names of the logic_branch entities to which this entity "listens". If there are fewer than sixteen, fill them in starting at the lowest number and working up and leave the unused ones blank. Wildcards are allowed in the targetnames.

Inputs

Test
Test the state of all the logic_branches in the Keyvalues list and fire the appropriate output.

Outputs

OnAllTrue
This Output fires when the values of all the logic_branches in the list are true (1) and either one of the logic_branches has changed from false (0) to true (1) or the Test input to this entity has been fired.
OnAllFalse
This Output fires when the values of all the logic_branches in the list are false (0) and either one of the logic_branches has changed from true (1) to false (0) or the Test input to this entity has been fired.
OnMixed
This Output fires when some of the logic_branches in the list are true (1) and some are false (0) and either one of the logic_branches has changed value or the Test input to this entity has been fired.

See also