Types/Sound: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(actually about sound, not working_sound)
(Changed links going to the redirect Types/uint to go to Types/uint32.)
Line 8: Line 8:


===volume===
===volume===
'''Type''': [[Types/uint]]
'''Type''': [[Types/uint32]]


Decides how loud the audio is.
Decides how loud the audio is.

Revision as of 10:42, 25 June 2018

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/uint32

Decides how loud the audio is.

Example

   {
     filename = "__base__/sound/ambient/world-ambience-3.ogg",
     volume = 1.2
   }