Sound (DEF): Difference between revisions
Jump to navigation
Jump to search
Created page with "'''sound { [...] } == Tokens == '''id <value> Specifies the ID of sound. The ID can be found in DEFS.CON. '''NOTE:''' This should only be used for HRP-like replacement of e..." |
No edit summary |
||
Line 1: | Line 1: | ||
'''sound { [...] } | '''sound''' { [...] } | ||
== Tokens == | == Tokens == | ||
'''id <value> | '''id''' <value> | ||
Specifies the ID of sound. The ID can be found in DEFS.CON. '''NOTE:''' This should only be used for HRP-like replacement of existing sounds. New sounds should use [[definesound]]. | Specifies the ID of sound. The ID can be found in DEFS.CON. '''NOTE:''' This should only be used for HRP-like replacement of existing sounds. New sounds should use [[definesound]]. | ||
'''file <filename> | '''file''' <filename> | ||
Specifies which audio file to use. File types: WAV, VOC, Ogg Vorbis, FLAC | Specifies which audio file to use. File types: WAV, VOC, Ogg Vorbis, FLAC | ||
'''volume <volume> | '''volume''' <volume> | ||
adjusts the volume of the sound, default is 1.0 | adjusts the volume of the sound, default is 1.0 |
Revision as of 09:05, 22 February 2020
sound { [...] }
Tokens
id <value>
Specifies the ID of sound. The ID can be found in DEFS.CON. NOTE: This should only be used for HRP-like replacement of existing sounds. New sounds should use definesound.
file <filename>
Specifies which audio file to use. File types: WAV, VOC, Ogg Vorbis, FLAC
volume <volume>
adjusts the volume of the sound, default is 1.0
minpitch <value>
maxpitch <value>
priority <value>
type <value>
distance <value>
Examples
sound { id "249" file "bonus.ogg" }