Types/PlaySoundTriggerEffectItem

From Official Factorio Wiki
Revision as of 11:45, 8 September 2020 by Bilka (talk | contribs) (1.0.0: added min_distance, max_distance, volume_modifier, audible_distance_modifier, play_on_target_position)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Extends Types/TriggerEffectItem.

Mandatory properties

Inherits all properties from Types/TriggerEffectItem.

sound

Type: Types/Sound

Optional properties

min_distance

Type: float

Default: 0

Negative values are silently clamped to 0.

max_distance

Type: float

Default: 1e21 (10^21)

Negative values are silently clamped to 0.

volume_modifier

Type: float

Default: 1

Negative values are silently clamped to 0.

audible_distance_modifier

Type: float

Default: 1

Negative values are silently clamped to 0.

play_on_target_position

Type: bool

Default: false