NPC.IdleSound

From GMod Wiki

Revision as of 02:02, 9 January 2011 by Disseminate (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax NPC:IdleSound( )
Description:
Plays the NPC's 'idle sound' defined in the engine.
Returns: nil
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.IdleSound]NPC.IdleSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

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


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox