Env speaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{Underlinked|date=January 2024}}
{{Underlinked|date=January 2024}}


<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{this is a|series=Half-Life 2|name=env_speaker|e0}} It randomly emits announcements using the [[response rules]] system.
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{this is a|point entity|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch|name=env_speaker}} It randomly emits announcements using the [[response rules]] system.


{{stray ent|{{as}} {{portal2}}}}
{{stray ent|{{as}} {{portal2}}}}

Revision as of 16:30, 17 May 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)

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.


C++ In code, it is represented by theCSpeakerclass, defined in theenv_speaker.cppfile.

Flags

  • 1: Start Silent
  • 2: Play Everywhere

Keyvalues

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


Inputs

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


Outputs