scripted_sentence

From Valve Developer Community
Revision as of 14:03, 29 February 2024 by N0one (talk | contribs) (Created page with "{{tabs|scripted_sentence|goldsrc = 1|source = 1|main = source}} {{This is a|name=scripted_sentence|e0|engine=1|game=Half-Life}} (also in {{ricochet|4}}) This entity allows yo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

scripted_sentence is an e0 available in Half-Life Half-Life.Template:1 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

(also in Ricochet Ricochet) This entity allows you to make a monster say something. Available sentence names can be found in the sound\sentences.txt file.

Key Values

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.
Delay before trigger (delay) <integer>
Delay in seconds before firing the targeted entity.
Killtarget (killtarget) <targetname>
Entity to remove when activated.
Sentence Name (sentence) <string>
Sentence to play.
Speaker Type (entity) <string>
This is the name of the entity that says the sentence. It can be a targetname of the specific monster or a classname.
Sentence Time (duration) <string>
The duration in seconds before the monster becomes available for usage by a player once the scripted sentence has started playing.
Search Radius (radius) <integer>
If speaker type is set to the monster's classname, the scripted_sentence will try to find the monster only in this radius (in units, relative to the scripted_sentence origin).
Delay Before Refire (refire) <string>
Delay before trying to find the appropriate monster again once the scripted_sentence is activated but failed to find the speaker.
Listener Type (listener) <string>
The name of the entity that the speaker will look towards while speaking.
Volume 0-10 (volume) <string>
Sound Radius (attenuation) <choices>
# Description
0 Small Radius
1 Medium Radius
2 Large Radius
3 Play Everywhere

Flags

Fire Once : [1]
Followers Only : [2]
Interrupt Speech : [4]
Concurrent : [8]