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

# Factorio Prototype Docs Version 2.0.77

# TriggerEffect - Prototype Docs

## TriggerEffect :: union or array[union]

Loaded as one of the TriggerEffectItem extensions, based on the value of the `type` key.

#### Union members

DamageEntityTriggerEffectItem | Loaded when the `type` is `"damage"`.
DamageTileTriggerEffectItem | Loaded when the `type` is `"damage-tile"`.
CreateEntityTriggerEffectItem | Loaded when the `type` is `"create-entity"`.
CreateExplosionTriggerEffectItem | Loaded when the `type` is `"create-explosion"`.
CreateFireTriggerEffectItem | Loaded when the `type` is `"create-fire"`.
CreateSmokeTriggerEffectItem | Loaded when the `type` is `"create-smoke"`.
CreateTrivialSmokeEffectItem | Loaded when the `type` is `"create-trivial-smoke"`.
CreateAsteroidChunkEffectItem | Loaded when the `type` is `"create-asteroid-chunk"`.
CreateParticleTriggerEffectItem | Loaded when the `type` is `"create-particle"`.
CreateStickerTriggerEffectItem | Loaded when the `type` is `"create-sticker"`.
CreateDecorativesTriggerEffectItem | Loaded when the `type` is `"create-decorative"`.
NestedTriggerEffectItem | Loaded when the `type` is `"nested-result"`.
PlaySoundTriggerEffectItem | Loaded when the `type` is `"play-sound"`.
PushBackTriggerEffectItem | Loaded when the `type` is `"push-back"`.
DestroyCliffsTriggerEffectItem | Loaded when the `type` is `"destroy-cliffs"`.
ShowExplosionOnChartTriggerEffectItem | Loaded when the `type` is `"show-explosion-on-chart"`.
InsertItemTriggerEffectItem | Loaded when the `type` is `"insert-item"`.
ScriptTriggerEffectItem | Loaded when the `type` is `"script"`.
SetTileTriggerEffectItem | Loaded when the `type` is `"set-tile"`.
InvokeTileEffectTriggerEffectItem | Loaded when the `type` is `"invoke-tile-trigger"`.
DestroyDecorativesTriggerEffectItem | Loaded when the `type` is `"destroy-decoratives"`.
CameraEffectTriggerEffectItem | Loaded when the `type` is `"camera-effect"`.
ActivateImpactTriggerEffectItem | Loaded when the `type` is `"activate-impact"`.

Type used in

- ArtilleryFlarePrototype::regular_trigger_effect
- ArtilleryFlarePrototype::ended_in_water_trigger_effect
- AsteroidChunkPrototype::dying_trigger_effect
- DecorativePrototype::trigger_effect
- DecorativePrototype::placed_effect
- DeliverImpactCombination::trigger_effect_item
- EntityWithHealthPrototype::dying_trigger_effect
- EntityWithHealthPrototype::damaged_trigger_effect
- LineTriggerItem::range_effects
- ParticlePrototype::regular_trigger_effect
- ParticlePrototype::ended_in_water_trigger_effect
- ParticlePrototype::ended_on_ground_trigger_effect
- RoboportPrototype::open_door_trigger_effect
- RoboportPrototype::close_door_trigger_effect
- RocketSiloPrototype::alarm_trigger
- RocketSiloPrototype::clamps_on_trigger
- RocketSiloPrototype::clamps_off_trigger
- RocketSiloPrototype::doors_trigger
- RocketSiloPrototype::raise_rocket_trigger
- RocketSiloRocketPrototype::flying_trigger
- RollingStockPrototype::drive_over_tie_trigger
- RollingStockPrototype::drive_over_elevated_tie_trigger
- SpiderLegSpecification::leg_hit_the_ground_trigger
- SpiderLegSpecification::leg_hit_the_ground_when_attacking_trigger
- SpiderLegTriggerEffect::effect
- TilePrototype::trigger_effect
- TriggerDeliveryItem::source_effects
- TriggerDeliveryItem::target_effects
- TriggerEffectWithCooldown::effect
- VehiclePrototype::crash_trigger
- VehiclePrototype::stop_trigger