Prototype/WindSound: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
 
(Updated styling of prototype doc migration note)
 
(4 intermediate revisions by 2 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/WindSound.html https://lua-api.factorio.com/latest/prototypes/WindSound.html]
Prototype type: '''wind-sound'''
 
</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>
 
 
 
{{Prototype parent}}
A wind sound.
 
{{Prototype TOC|wind-sound}}


==Properties==
==Properties==
=== type ===
'''Type''': [[Types/string]]


{{Prototype property|type|[[Types/string|string]]}}
Specification of the type of the prototype. Must be "wind-sound".
Specification of the type of the prototype. Must be "wind-sound".


=== name ===
{{Prototype property|name|[[Types/string|string]]}}
'''Type''': [[Types/string]]
 
Unique textual identification of the prototype.
Unique textual identification of the prototype.


=== sound ===
{{Prototype property|sound|[[Types/Sound|Sound]]}}
'''Type''': [[Types/Sound]]
 
The sound file and volume.
The sound file and volume.



Latest revision as of 10:43, 21 September 2023

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/WindSound.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.


Prototype definitions » Prototype/WindSound


A wind sound.


Prototype/WindSound — wind-sound
name::string
sound::Sound
type::string

Properties

type

Type: string
Specification of the type of the prototype. Must be "wind-sound".

name

Type: string
Unique textual identification of the prototype.

sound

Type: Sound
The sound file and volume.

Example

{
    type = "wind-sound",
    name = "wind-1",
    sound =
    {
      filename = "__base__/sound/wind/wind.ogg",
      volume = 1.0
    }
  }