Globalsound

From EDukeWiki
Revision as of 19:37, 24 February 2011 by Hendricks266 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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. As an alternate short form, "varvar" can be dropped from these commands; for example ife serves an an alias for ifvarvare.