Entity/StopSound

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
 
Line 2: Line 2:
 
|Description=Stops emitting the given sound script from the entity, especially useful for looping sound scripts.
 
|Description=Stops emitting the given sound script from the entity, especially useful for looping sound scripts.
  
{{Note|This only works with sound scripts ({{LibraryFunction|sound|Add}}), using a file path will not work!}}
+
{{Warning|This only works when the sound you're trying to stop is a sound script (see {{LibraryFunction|sound|Add}}), using a file path will not work!}}
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 18:27, 19 December 2019

 Entity:StopSound( )

Description

Stops emitting the given sound script from the entity, especially useful for looping sound scripts.

WARNING

This only works when the sound you're trying to stop is a sound script (see sound.Add), using a file path will not work!

Arguments

string soundscript

The name of the sound script to stop playback of.
Personal tools
Navigation