Logic branch listener

From Valve Developer Community

This Point-based Entity is available in all Source Games using the Episode 1 Engine.

Table of contents

Entity Description

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

Defines the name that other entities refer to this entity by.
  • hammerid [New with Orange Box]
<integer readonly> This id is used for debugging purposes in Hammer.
  • Branch01-16
<target_destination> The name of one or more logic_branches (wildcards allowed).

Inputs

  • Kill
Removes this entity from the world.
Removes this entity and all its children from the world.
  • AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
  • 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.