Factorio Prototype DocsVersion 2.0.26

PlaySoundTriggerEffectItem :: struct

Inherits from TriggerEffectItem

Properties

type :: "play-sound"
sound :: Sound
min_distance optional :: float

Negative values are silently clamped to 0.

Negative values are silently clamped to 0.

max_distance optional :: float

Negative values are silently clamped to 0.

Negative values are silently clamped to 0.

volume_modifier optional :: float

Negative values are silently clamped to 0.

Negative values are silently clamped to 0.

audible_distance_modifier optional :: float

Negative values are silently clamped to 0.

Negative values are silently clamped to 0.

play_on_target_position optional :: bool

Inherited from TriggerEffectItem
repeat_count optional :: uint16
repeat_count_deviation optional :: uint16
probability optional :: float

Must be greater than 0 and less than or equal to 1.

Must be greater than 0 and less than or equal to 1.

affects_target optional :: bool
show_in_tooltip optional :: bool
damage_type_filters optional :: DamageTypeFilters

Properties

type :: "play-sound"

sound :: Sound

min_distance :: float optional

Default: 0

Negative values are silently clamped to 0.

max_distance :: float optional

Default: 1e21

Negative values are silently clamped to 0.

volume_modifier :: float optional

Default: 1

Negative values are silently clamped to 0.

audible_distance_modifier :: float optional

Default: 1

Negative values are silently clamped to 0.

play_on_target_position :: bool optional

Default: false


Type used in

Prototypes

Types

Defines