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
(-added class hierarchy)
No edit summary
Line 1: Line 1:
{{LanguageBar}}
{{tabs|multisource|goldsrc = 1|source = 1}}
{{tabs|multisource|goldsrc = 1|source = 1}}
{{CD|CMultiSource|goldsrc=1}}
{{CD|CMultiSource|goldsrc=1}}
Line 18: Line 19:


{{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]]

Revision as of 02:46, 28 August 2024

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