Env speaker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Reverted edit of RolerLalid, changed back to last version by Ts2do)
m (Robot: fixing template case.)
Line 23: Line 23:
== Inputs ==
== Inputs ==
* {{i targetname}}
* {{i targetname}}
* {{i responsecontext}}
* {{I ResponseContext}}
* '''TurnOn'''
* '''TurnOn'''
: Turn on the random announcements.
: Turn on the random announcements.

Revision as of 19:33, 19 January 2009

Template:Wrongtitle

Entity description

Ambient generic.png

Announcement Speaker, used in several maps it uses the NPC response context system. You can specify time between announcements. When it makes an announcement, it looks at its Context rule script, chooses the best rule (Response Contexts and Concept name are used here.), then dispatches a response which could be a .vcd scene that controls an NPC, a sentence, or just a sound. See Response System for more information about context rule script grammar.

Keyvalues

<string> Minimum Delay Between Announcements
  • delaymax
<string> Maximum Delay Between Announcements
  • rulescript
<string> Script file containing rules for playing appropriate sounds.
  • Concept
<string> High level concept name used as primary search key.

Flags

  • Start Silent : 0
  • Play Everywhere : 0

Inputs

AddContext <stringRedirectInput/string>
Adds to the entity's list of response contexts. Format is <key>:<value>.
RemoveContext <stringRedirectInput/string>
Remove a context from this entity's list. The name should match the key of an existing context.
ClearContext
Removes all contexts from this entity's list.
  • TurnOn
Turn on the random announcements.
  • TurnOff
Turn off the random announcements.
  • Toggle
Toggle the random announcements off and on.

Outputs