Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# TriggerEffectItem - Prototype Docs

## TriggerEffectItem :: struct - abstract

The abstract base of all TriggerEffects.

Children ActivateImpactTriggerEffectItem CameraEffectTriggerEffectItem CreateAsteroidChunkEffectItem CreateDecorativesTriggerEffectItem CreateEntityTriggerEffectItem CreateExplosionTriggerEffectItem CreateFireTriggerEffectItem CreateSmokeTriggerEffectItem CreateParticleTriggerEffectItem FootstepTriggerEffectItem CreateStickerTriggerEffectItem CreateTrivialSmokeEffectItem DamageEntityTriggerEffectItem DamageTileTriggerEffectItem DestroyCliffsTriggerEffectItem DestroyDecorativesTriggerEffectItem InsertItemTriggerEffectItem InvokeTileEffectTriggerEffectItem NestedTriggerEffectItem PlaySoundTriggerEffectItem PushBackTriggerEffectItem ScriptTriggerEffectItem SetTileTriggerEffectItem ShowExplosionOnChartTriggerEffectItem

## Properties

- default
- sorted

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 | :: boolean |
show_in_tooltip optional | :: boolean |
damage_type_filters optional | :: DamageTypeFilters | Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]

affects_target optional | :: boolean |
damage_type_filters optional | :: DamageTypeFilters | Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
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`.
repeat_count optional | :: uint16 |
repeat_count_deviation optional | :: uint16 |
show_in_tooltip optional | :: boolean |

## 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 :: boolean optional

Default: `false`

### show_in_tooltip :: boolean 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.