Env speaker: Difference between revisions
Jump to navigation
Jump to search
m (Robot: fixing template case.) |
m (Robot: fixing template case.) |
||
Line 6: | Line 6: | ||
== Keyvalues == | == Keyvalues == | ||
* {{ | * {{KV Targetname}} | ||
* {{KV ResponseContext}} | * {{KV ResponseContext}} | ||
* '''delaymin''' | * '''delaymin''' |
Revision as of 19:56, 19 January 2009
Entity description
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
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- ResponseContext:
- Response Contexts (ResponseContext) <string>
- Pre-defined response system context{s} for this entity. Format is
key:value,key:value,...
When this entity speaks, the list of keys & values will be passed to the response rules system.
- delaymin
- <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
- ResponseContext:
- AddContext <string >
- Adds to the entity's list of response contexts. Format is
<key>:<value>
.
- RemoveContext <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.