Logic branch listener

From Valve Developer Community
Revision as of 17:22, 26 July 2011 by Barracuda (talk | contribs)
Jump to navigation Jump to search

Template:Base point ep1 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 ([todo internal name (i)]) to Logic Branch 16 <targetname>
The name of one or more logic_branches (wildcards allowed).
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

Test
Tests the state of all the logic_branches in the list and fires the appropriate output.


Outputs

OnAllTrue
Fired when all the logic_branches in the list become true.
OnAllFalse
Fired when all the logic_branches in the list become false.
OnMixed
Fired when one of the logic branches in the list changes, but some are true and some are false.