StopSound

From ZDoom Wiki
Jump to: navigation, search

void StopSound (int tid, int channel);

Usage

Stops the sound currently playing on the specified channel for the actor with matching tid. This is similar to the A_StopSound action function except that the default channel is CHAN_BODY. If tid is 0, this stops the sound currently playing by the activator of the script.

Parameters

  • tid: The tid of the actor to stop its sound.
  • channel: The channel on which the sound is to be stopped. Default is CHAN_BODY.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.