NPC.FearSound
From GMod Wiki
Revision as of 02:02, 9 January 2011 by Disseminate (Talk | contribs)
| Function | |
| Syntax | NPC:FearSound( ) |
| Description: | |
| Plays the NPC's 'fear sound' defined in the engine. | |
| Returns: | nil |
| In Object: | Npc |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.FearSound]NPC.FearSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Make all headcrabs play their fear cry. |
|---|---|
| Used on | |
| Code | for _, v in pairs( ents.FindByClass( "npc_headcrab" ) ) do v:FearSound(); end |
| Output | The NPC will cry out in fear. |
Additional Notes
- Seems to be broken for every NPC.