Factorio Prototype DocsVersion 2.0.28

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

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

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

Prototypes

Types

Defines