NPC.PlaySentence

From GMod Wiki

Jump to: navigation, search
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: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.PlaySentence]NPC.PlaySentence [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionMakes the NPC play a sentence.
Used onNewerServer.png
Code
npc:PlaySentence("METROPOLICE_IDLE",0,1)
OutputThe NPC will play metrocop idle chatter.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox