EVENT SOUND: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Created page with "EVENT_SOUND is a Game Event. This event is triggered upon playback of any sound. This allows the "hard coded" sounds to be altered in a context-awa..."
 
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
EVENT_SOUND is a [[EDuke32 event list|Game Event]].
EVENT_SOUND is a [[EDuke32 event list|Game Event]].


This [[event]] is triggered upon playback of any sound. This allows the "hard coded" sounds to be altered in a context-aware fashion instead of having to resort to clunky hacks like replacing them with a blank sound effect. The [[RETURN]] variable is set to the sound effect number of the sound to be played. Set it to -1 to cancel playback.
This [[event]] is triggered upon playback of any sound, and allows hard coded sounds to be altered in a context-aware fashion. The [[RETURN]] variable is set to the sound effect number of the sound that is being played. Set [[RETURN]] to the sound you want to be played instead, or set it to -1 to cancel playback.


[[Category:Events]]
[[Category:Events]]

Revision as of 13:35, 20 July 2014

EVENT_SOUND is a Game Event.

This event is triggered upon playback of any sound, and allows hard coded sounds to be altered in a context-aware fashion. The RETURN variable is set to the sound effect number of the sound that is being played. Set RETURN to the sound you want to be played instead, or set it to -1 to cancel playback.