Globalsound: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Added an example
Line 1: Line 1:
globalsound <sound>
globalsound <sound>


Play sound that can be heard everywhere in the map. The <sound> value is the name or number of the sound to play (not the filename of the sound).  See [[globalsoundvar]].
Plays a sound that can be heard everywhere in the map. The <sound> value is the name or number of the sound to play, not the filename of the sound.  See [[globalsoundvar]].
 
state checkboss1hitstate
  ifrnd 2
    spawn BLOODPOOL
  ifdead
  {
    ifspritepal 0
      '''globalsound''' DUKE_TALKTOBOSSFALL
    else
...


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sound manipulation]]
[[Category:Sound manipulation]]

Revision as of 09:42, 7 September 2006

globalsound <sound>

Plays a sound that can be heard everywhere in the map. The <sound> value is the name or number of the sound to play, not the filename of the sound. See globalsoundvar.

state checkboss1hitstate
  ifrnd 2
    spawn BLOODPOOL
  ifdead
  {
    ifspritepal 0
      globalsound DUKE_TALKTOBOSSFALL
    else
...