env_speaker

From Source Entities
Jump to navigation Jump to search

Present in:
Hl2.pngHL2
Hl2-episodes.pngEp1&2
Hl2dm-custom.pngHL2:DM
P1.pngPortal
Asw.pngASW
P2.pngPortal 2

Code classes:

Ambient generic.png

env_speaker is a point entity present in some Source games. It randomly emits announcements using the response rules system. To do: Example of its use in a game.

Not related to env_microphone.

Note: P1.pngBe careful when targeting the env_speaker classname; the entity is created by prop_portals.

Flags[edit | edit source]

  • 1: Start Silent
  • 2: Play Everywhere - Not used in code.

Keyvalues[edit | edit source]

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[edit | edit source]

TurnOn
Starts random announcements.
TurnOff
Stops random announcements.
Toggle
If on, turn off. If off, turn on.