Types/Sound

From Official Factorio Wiki
Revision as of 13:25, 13 April 2019 by Bilka (talk | contribs) (0.17)
Jump to navigation Jump to search

Basics

This type is either a table with the properties listed in #Optional properties, or an array of tables with the following members:

Optional properties

aggregation

Type: Types/table

Table with the following members:

  • max_count - Types/uint32 - Mandatory.
  • progress_threshold - Types/float - Optional. - Default: 1.0 - If count already playing is true, this will determine maximum progress when instance is counted toward playing sounds.
  • remove - Types/bool - Mandatory.
  • count_already_playing - Types/bool - Optional. - Default: false - If true already playing sounds are taken into account when checking maxCount.

audible_distance_modifier

Type: Types/double

Default: 1.0

variations

Type: Types/table of Types/tables

Array of tables with the following members:

filename

Type: Types/FileName

Mandatory if variations is not given.

volume

Type: Types/float

Default: 1.0

Only loaded if variations is not given.

preload

Type: Types/bool

Only loaded if variations is not given.

Example

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