NPC.FearSound

From GMod Wiki

Jump to: navigation, search
Function
Syntax NPC:FearSound( )
Description:
Plays the NPC's 'fear sound' defined in the engine.
Returns: nil
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.FearSound]NPC.FearSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMake all headcrabs play their fear cry.
Used onNewerServer.png
Code
 
for _, v in pairs( ents.FindByClass( "npc_headcrab" ) ) do
	v:FearSound();
end
 
OutputThe NPC will cry out in fear.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox