Types/Sound: Difference between revisions
Jump to navigation
Jump to search
(added some more properties) |
(actually about sound, not working_sound) |
||
Line 6: | Line 6: | ||
Used to let the game know what audio file you want it to use. | Used to let the game know what audio file you want it to use. | ||
===volume=== | ===volume=== | ||
'''Type''': [[Types/ | '''Type''': [[Types/uint]] | ||
Decides how loud the audio is. | Decides how loud the audio is. | ||
==Example== | ==Example== |
Revision as of 18:42, 6 September 2017
Basics
This type is used to produce sound from in-game entities, ambient sound, and music.
Mandatory properties
filename
Type: Types/FileName
Used to let the game know what audio file you want it to use.
volume
Type: Types/uint
Decides how loud the audio is.
Example
{ filename = "__base__/sound/ambient/world-ambience-3.ogg", volume = 1.2 }