Scripted sentence

From Valve Developer Community
Revision as of 15:30, 6 July 2005 by AndrewNeo (talk | contribs) (Technical limitations and cleanup)
Jump to navigation Jump to search

Template:Wrongtitle

Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

scripted_sentence

Scripted Sentence

KEYS

Name targetname <target_source> The name that other entities refer to this entity by.

spawnflags spawnflags <flags>

Sentence Name sentence <string>

Speaker Type entity <string>

Additional Sentence Time delay <string>

Search Radius radius <integer>

Delay Before Refire refire <string>

Listener Type listener <string>

Volume 0-10 volume <string>

Sound Radius attenuation <choices>


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.

BeginSentence Starts the scripted sentence.


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.

OnBeginSentence Fires when the sentence begins

OnEndSentence Fires when the sentence ends