Prototype/AmbientSound: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
mNo edit summary
(Removed old prototype docs)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Basics==
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/AmbientSound.html https://lua-api.factorio.com/latest/prototypes/AmbientSound.html]
This prototype is used to make sound, while playing the game. This includes background noise, such as trees and wind, or the in-game's music, composed by Daniel James Taylor.
==Properties==
Inherits all properties from [[Prototype]].
===track_type===
'''Type''': [[Types/string]]


This lets the game know in what instances the audio file is played.
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
The ones the game uses are as follows:
 
  "early-game"
  "main-track"
  "interlude"
===sound===
'''Type''': [[Types/Sound]]
 
This links the sound file, and volume to the prototype.
==Example==
  {
    type = "ambient-sound",
    name = "world-ambience-4",
    track_type = "interlude",
    sound =
    {
      filename = "__base__/sound/ambient/world-ambience-4.ogg",
      volume = 1.2
    }
  },

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/AmbientSound.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.