Factorio Prototype DocsVersion 2.1.7

CreatePollutionTriggerEffectItem - Prototype Docs

CreatePollutionTriggerEffectItem :: struct new

Inherits from TriggerEffectItem

Properties

typechanged :: "create-pollution"
amountnew :: double

This may be negative which will reduce pollution when run.

This may be negative which will reduce pollution when run.

entitynew optional :: EntityID

If not defined, and use_entity_from_trigger is false, the pollution does not show in statistics.

If not defined, and use_entity_from_trigger is false, the pollution does not show in statistics.

use_entity_from_triggernew optional :: boolean

If not set, and entity is not set, the pollution does not show in statistics.

If not set, and entity is not set, the pollution does not show in statistics.

Inherited from TriggerEffectItem
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

Properties

type :: "create-pollution"changed

amount :: doublenew

This may be negative which will reduce pollution when run.

entity :: EntityID optional new

If not defined, and use_entity_from_trigger is false, the pollution does not show in statistics.

use_entity_from_trigger :: boolean optional new

Default: true

If not set, and entity is not set, the pollution does not show in statistics.


Type used in
Fulltext search

Prototypes

Types

Defines

Fulltext search for