env_speaker
Jump to navigation
Jump to search
Code classes:
CSpeaker
CPointEntity
CBaseEntity
(all ents)
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: Be careful when targeting the
env_speaker
classname; the entity is created by prop_portal
s.
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.