Editing StopSound

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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:
{{ACSFunction|description=Stop sounds from playing from things.
''void'' '''StopSound'''(''int tid''[, ''int channel''])
|usage=''void'' '''StopSound'''(''int tid''[, ''int channel''])
 
|parameters=
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:
*''tid'': [[TID]] of things to stop sound sequence
* '''CHAN_AUTO'''
*''channel'': from which channel to cancel the sounds, and it can be one of the following:
* '''CHAN_WEAPON'''
:* '''CHAN_AUTO'''
* '''CHAN_VOICE'''
:* '''CHAN_WEAPON'''
* '''CHAN_ITEM'''
:* '''CHAN_VOICE'''
* '''CHAN_BODY'''
:* '''CHAN_ITEM'''
* '''CHAN_5'''
:* '''CHAN_BODY'''
* '''CHAN_6'''
:* '''CHAN_5'''
* '''CHAN_7'''
:* '''CHAN_6'''
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.
:* '''CHAN_7'''
 
|notes=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==
|id=<code>-62:StopSound(1,2)</code>
*[[ACS built-in functions]]
|seealso=
 
*[[SoundSequence]]
[[Category:ACS]]
*[[SoundSequenceOnActor]]}}
[[Category:Editing]]
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: