Multisource: Difference between revisions
Jump to navigation
Jump to search
Bug:If a caller of this input is not in the list, the game is supposed to print warning in console and ignore the input but instead it toggles the state of last entity in the list [todo tested in ?]
(-hopefully the explanation of use input makes sense ?) |
m (-grammar) |
||
Line 14: | Line 14: | ||
== Inputs == | == Inputs == | ||
{{IO|Use|Multisource contains a list of all entities that are targetting it (i.e. target keyvalue of an entity is set to targetname of the multisource) and a state ON/OFF for each entity in the list. If an entity from the list is caller of this input the state is toggled. If all states are ON OnTrigger output is fired.}} | {{IO|Use|Multisource contains a list of all entities that are targetting it (i.e. target keyvalue of an entity is set to targetname of the multisource) and a state ON/OFF for each entity in the list. If an entity from the list is caller of this input the state is toggled. If all states are ON then OnTrigger output is fired.}} | ||
{{bug|If caller of this input is not in the list, the game is supposed to print warning in console and ignore the input but instead it | {{bug|If a caller of this input is not in the list, the game is supposed to print warning in console and ignore the input but instead it toggles the state of last entity in the list}} | ||
== Outputs == | == Outputs == | ||
{{IO|OnTrigger|When Use input is successful}} | {{IO|OnTrigger|When Use input is successful}} |
Revision as of 16:32, 1 July 2023

![]() |
---|
CMultiSource |
![]() |
Template:Entity Deprecated entity from GoldSrc, only used in Half Life: Source, replaced by I/O system in Source.
This entity is the only entity that can be used as a master. (Entities that specify a master cannot be enabled unless their master is enabled.)
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Global State Master (globalstate) <string>
- [Todo]
Inputs
- Use
- Multisource contains a list of all entities that are targetting it (i.e. target keyvalue of an entity is set to targetname of the multisource) and a state ON/OFF for each entity in the list. If an entity from the list is caller of this input the state is toggled. If all states are ON then OnTrigger output is fired.

Outputs
- OnTrigger
- When Use input is successful