Garry's Mod Wiki

Revision Difference

Entity:StopSound#514581

<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>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="soundscript" type="string">The name of the sound script to stop playback of.</arg>⤶ </args>⤶ </function>⤶ ⤶