Types/Sound: Difference between revisions
Jump to navigation
Jump to search
(0.17) |
(Prototype property type usage) |
||
Line 50: | Line 50: | ||
volume = 1.2 | volume = 1.2 | ||
} | } | ||
{{Prototype property type usage|{{FULLPAGENAME}}}} |
Revision as of 17:14, 8 August 2019
Basics
This type is either a table with the properties listed in #Optional properties, or an array of tables with the following members:
- filename - Types/FileName - Mandatory.
- volume - Types/float - Optional. - Default: 1.0
- preload - Types/bool - Optional.
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 - Types/FileName - Mandatory.
- volume - Types/float - Optional. - Default: 1.0
- preload - Types/bool - Optional.
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 }