Editing StopSound
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
''void'' '''StopSound'''(''int tid''[, ''int channel'']) | |||
Stop sounds from playing from things tagged as ''[[tid]]''. You can specify from which ''channel'' to cancel the sounds, and can be one of the following: | |||
* '''CHAN_AUTO''' | |||
* '''CHAN_WEAPON''' | |||
* '''CHAN_VOICE''' | |||
* '''CHAN_ITEM''' | |||
* '''CHAN_BODY''' | |||
* '''CHAN_5''' | |||
* '''CHAN_6''' | |||
* '''CHAN_7''' | |||
Beware that the '''StopSound''' function defaults ''channel'' (if omitted) to '''CHAN_BODY''', but the most common channel for sounds played from [[EDF]] is '''CHAN_AUTO''', so most of the time you'll want to specify ''channel'' as such. | |||
==See also== | |||
*[[ACS built-in functions]] | |||
[[Category:ACS]] | |||
[[Category:Editing]] |