Factorio Prototype DocsVersion 2.0.19

TriggerEffectItem :: struct - abstract

The abstract base of all TriggerEffects.

Children

Properties

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

repeat_count :: uint16 optional

Default: 1

repeat_count_deviation :: uint16 optional

Default: 0

probability :: float optional

Default: 1

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

affects_target :: bool optional

Default: false

show_in_tooltip :: bool optional

Default: true

damage_type_filters :: DamageTypeFilters optional

Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. Unknown if it works with other properties that use TriggerEffect.

Prototypes

Types

Defines