Garry's Mod Wiki

Revision Difference

Entity:StopSound#524908

<function name="StopSound" parent="Entity" type="classfunc"> <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 <page>sound.Add</page>), using a file path will not work!</warning>⤶ Stops emitting the given sound from the entity, especially useful for looping sounds. ⤶ <warning>⤶ Filepaths are only able to be used on the Development branch of the Game.⤶ </warning>⤶ </description> ⤶ ⤶ <realm>Shared</realm> <args> <arg name="soundscript" type="string">The name of the sound script to stop playback of.</arg> <arg name="soundscript or filepath" type="string">The name of the sound script or the filepath to stop playback of.</arg> </args> </function>