Env speaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 23: Line 23:


==See also==
==See also==
*[[func_monitor]]
*{{ent|func_monitor}}




[[Category:Sound System]]
[[Category:Sound System]]

Revision as of 23:23, 29 July 2024

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)
C++ Class hierarchy
CSpeaker
CPointEntity
CBaseEntity
C++ env_speaker.cpp

env_speaker is a point entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Half-Life 2: Deathmatch Half-Life 2: Deathmatch. It randomly emits announcements using the response rules system.

Note.pngNote:This entity is also in the code for Alien Swarm Portal 2. Its functionality is not guaranteed.


Flags

Start Silent : [1]
Play Everywhere : [2]

Keyvalues

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

Min Delay Between Announcements (delaymin) <float>
Minimum time between announcements in seconds.
Max Delay Between Announcements (delaymax) <float>
Maximum time between announcements in seconds.
Context rule script (rulescript) <string>
The response rules script file to load.
Concept name (concept) <string>
The concept to speak.

Inputs

TurnOn
Start random announcements.
TurnOff
Stop random announcements.
Toggle
If on, turn off. If off, turn on.

See also