Globalsound: Difference between revisions
Jump to navigation
Jump to search
Added an example |
Hendricks266 (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
globalsound <sound> | '''globalsound''' <sound><br> | ||
'''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]]. | 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]]. | ||
Line 12: | Line 13: | ||
else | else | ||
... | ... | ||
{{varsuffix}} | |||
[[Category:Duke3D 1.3/1.5 commands]] | [[Category:Duke3D 1.3/1.5 commands]] | ||
[[Category:Sound manipulation]] | [[Category:Sound manipulation]] |
Latest revision as of 20:37, 24 February 2011
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.