env_speaker

From Valve Developer Community
Revision as of 10:17, 4 January 2024 by WisdomBot (talk | contribs) (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Jump to navigation Jump to search
English (en)Translate (Translate)

env_speaker is an e0 available in Half-Life 2 series Half-Life 2 series. It randomly emits announcements using the response rules system.

{{stray ent|Portal Alien Swarm Portal 2

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