Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## TriggerEffectWithCooldown :: struct

A TriggerEffect with cooldown conditions, used to limit the frequency of trigger effects that would otherwise fire every single tick. If multiple cooldown conditions are defined, then all cooldowns must be satisfied before the effect can be triggered.

## Properties

- default
- sorted

distance_cooldown optional | :: double | The travel distance between triggers that the triggerer must travel between effects. [...]
The travel distance between triggers that the triggerer must travel between effects. [...]
initial_distance_cooldown optional | :: double | The initial state of the distance cooldown. [...]
The initial state of the distance cooldown. [...]
time_cooldown optional | :: MapTick | The number of ticks that elapse between triggers.
The number of ticks that elapse between triggers.
initial_time_cooldown optional | :: MapTick | The initial amount of time to wait before triggering the effect for the first time.
The initial amount of time to wait before triggering the effect for the first time.
effect | :: TriggerEffect |

effect | :: TriggerEffect |
distance_cooldown optional | :: double | The travel distance between triggers that the triggerer must travel between effects. [...]
The travel distance between triggers that the triggerer must travel between effects. [...]
initial_distance_cooldown optional | :: double | The initial state of the distance cooldown. [...]
The initial state of the distance cooldown. [...]
initial_time_cooldown optional | :: MapTick | The initial amount of time to wait before triggering the effect for the first time.
The initial amount of time to wait before triggering the effect for the first time.
time_cooldown optional | :: MapTick | The number of ticks that elapse between triggers.
The number of ticks that elapse between triggers.

## Properties

### distance_cooldown :: double optional

Default: `0`

The travel distance between triggers that the triggerer must travel between effects. Negative values will mean there is no cooldown.

### initial_distance_cooldown :: double optional

Default: `0`

The initial state of the distance cooldown. In other words, the distance the triggerer must travel before the first effect can be triggered. Useful for staggering multiple effects.

### time_cooldown :: MapTick optional

Default: `0`

The number of ticks that elapse between triggers.

### initial_time_cooldown :: MapTick optional

Default: `0`

The initial amount of time to wait before triggering the effect for the first time.

### effect :: TriggerEffect

Type used in

- SegmentPrototype::update_effects
- SegmentPrototype::update_effects_while_enraged
- StickerPrototype::update_effects