scripted_sentence

From Valve Developer Community
Jump to: navigation, search

scripted_sentence is a point entity available in Half-Life Half-Life. (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


Targetname:
Name (targetname) <targetname>
The targetname that other entities refer to this entity by.

Target:
Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.

TargetX:
Delay before trigger (???) <integer>
Delay in seconds before firing the targeted entity.
KillTarget (???) <target_destination>
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

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