This article's documentation is for the "GoldSrc" engine. Click here for more information.

Multisource (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{HL1}} '''Multisource''' is a point entity available in [[Half-Life]].
{{LanguageBar}}
{{TabsBar|main=gs|base=multisource}}
{{CD|CMultiSource|goldsrc=1}}
{{this is a|point entity|engine=GoldSrc|name=multisource|sprite=1}}


==Entity description==
==Entity description==


Multisource behaves exactly the opposite as [[multi_manager (GoldSource Engine)|multi_manager]]. Instead of receiving a single input and triggering multiple outputs, multisource recieves multiple inputs, and will trigger its target '''if and only if''' every entity that targets the multisource has triggered said multisource. For basic use cases, this is all you need to know.
Multisource behaves exactly the opposite as [[multi_manager (GoldSrc)|multi_manager]]. Instead of receiving a single input and triggering multiple outputs, multisource recieves multiple inputs, and will trigger its target '''if and only if''' every entity that targets the multisource has triggered said multisource. For basic use cases, this is all you need to know.


This entity is also the only entity that can be used as a master.<br />
This entity is also the only entity that can be used as a [[master]].<br />
(Entities that specify a master cannot be enabled unless their master is enabled.)
(Entities that specify a master cannot be enabled unless their master is enabled.)
<br /><br />
<br /><br />
Line 11: Line 14:
For example: a keycard for a slot.
For example: a keycard for a slot.
== Keyvalues ==
== Keyvalues ==
{{KV|Name|target_source|Name - If a name is given to this entity, it can be activated by another trigger.}}
{{KV|Name|intn=targetname|target_source|Name - If a name is given to this entity, it can be activated by another trigger.}}


{{KV|Target|target_source|Entity to activate.}}
{{KV|Target|intn=target|target_source|Entity to activate.}}


{{KV|Global entity name|target_source|If this entity is used between multiple levels, all entities with this global entity name will have the same stats and properties.}}
{{KV|Global entity name|target_source|If this entity is used between multiple levels, all entities with this global entity name will have the same stats and properties.}}
== See Also ==
* {{ent|multi_manager|engine=goldsrc}}


[[Category:Half-Life]]
[[Category:Half-Life]]
[[Category:Half-Life Entities]]
[[Category:Half-Life Entities]]

Latest revision as of 13:39, 29 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CMultiSource
CPointEntity
CBaseEntity
C++ buttons.cpp
Multisource.png

multisource is a point entity available in all GoldSrc GoldSrc games.

Entity description

Multisource behaves exactly the opposite as multi_manager. Instead of receiving a single input and triggering multiple outputs, multisource recieves multiple inputs, and will trigger its target if and only if every entity that targets the multisource has triggered said multisource. For basic use cases, this is all you need to know.

This entity is also the only entity that can be used as a master.
(Entities that specify a master cannot be enabled unless their master is enabled.)

It can used be create mechanisms. For example: a keycard for a slot.

Keyvalues

Name (targetname) <string>
Name - If a name is given to this entity, it can be activated by another trigger.


Target (target) <string>
Entity to activate.


Global entity name ([todo internal name (i)]) <string>
If this entity is used between multiple levels, all entities with this global entity name will have the same stats and properties.

See Also