Env speaker: Difference between revisions
Jump to navigation
Jump to search
(Added entity) |
Angry Beaver (talk | contribs) m (fixed TurnOff, and added to description) |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=env_speaker}} | {{wrongtitle|title=env_speaker}} | ||
==Entity Description== | ==Entity Description== | ||
Announcement Speaker | Announcement Speaker, used in several maps it uses the NPC response context system. | ||
==Keyvalues== | ==Keyvalues== | ||
Line 42: | Line 42: | ||
*'''TurnOn''' | *'''TurnOn''' | ||
:Turn on the random announcements. | :Turn on the random announcements. | ||
*'''TurnOff'' | *'''TurnOff''' | ||
:Turn off the random announcements. | :Turn off the random announcements. | ||
*'''Toggle''' | *'''Toggle''' |
Revision as of 12:19, 14 August 2005
Entity Description
Announcement Speaker, used in several maps it uses the NPC response context system.
Keyvalues
- name
- targetname <target_source> The name that other entities refer to this entity by.
- Response Contexts
- ResponseContext <string> Response system context(s) for this entity. Format should be: 'key:value,key2:value2,etc'. When this entity speaks, the list of keys & values will be passed to the response rules system.
- Min Delay Between Announcements
- delaymin <string>
- Max Delay Between Announcements
- delaymax <string>
- spawnflags
- spawnflags <flags>
- Context rule script
- rulescript <string> Script file containing rules for playing appropriate sounds.
- Concept name
- concept <string> High level concept name used as primary search key.
Inputs
- Kill
- Removes this entity from the world.
- KillHierarchy
- Removes this entity and all its children from the world.
- AddOutput
- <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
- FireUser1
- Causes this entity's OnUser1 output to be fired.
- FireUser2
- Causes this entity's OnUser2 output to be fired.
- FireUser3
- Causes this entity's OnUser3 output to be fired.
- FireUser4
- Causes this entity's OnUser4 output to be fired.
- AddContext
- <string> Adds a context to this entity's list of response contexts. The format should be 'key:value'.
- RemoveContext
"<string> Remove a context from this entity's list of response contexts. The name should match the 'key' of a previously added context.
- ClearContext
- Removes all contexts in this entity's list of response contexts.
- TurnOn
- Turn on the random announcements.
- TurnOff
- Turn off the random announcements.
- Toggle
- Toggle the random announcements off and on.
Outputs
- OnUser1
- Fired in response to FireUser1 input.
- OnUser2
- Fired in response to FireUser2 input.
- OnUser3
- Fired in response to FireUser3 input.
- OnUser4
- Fired in response to FireUser4 input.