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

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