Globalsound - EDukeWiki

# Globalsound

From EDukeWiki

globalsound <sound>
globalsoundvar <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
    ...

Commands with an additional "var" suffix take gamevars rather than constants or defined labels for their inputs.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Globalsound&oldid=9383"
Categories:

- Duke3D 1.3/1.5 commands
- Sound manipulation