NPC.PlaySentence
From GMod Wiki
Revision as of 12:31, 2 June 2011 by Chrisaster (Talk | contribs)
| Function | |
| Syntax | NPC:PlaySentence( String Sentence group, Float Delay, Float Volume ) |
| Description: | |
| Lets a npc say a sentence from the sentences.txt file. | |
| Returns: | nil |
| In Object: | Npc |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.PlaySentence]NPC.PlaySentence [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Makes the NPC play a sentence. |
|---|---|
| Used on | |
| Code | npc:PlaySentence("METROPOLICE_IDLE",0,1) |
| Output | The NPC will play metrocop idle chatter. |
Additional Notes
- Delay is currently unused.
- Volume is a float between 0 and 1.