Difference between revisions of "Types/TriggerEffect"

From Official Factorio Wiki
Jump to: navigation, search
(0.18.21: InvokeTileEffectTriggerEffectItem and DestroyDecorativesTriggerEffectItem)
m
Line 4: Line 4:
 
'''Type''': [[Types/string]]
 
'''Type''': [[Types/string]]
  
Mandatory member of each table in the array. Either "damage", "create-entity", "create-explosion", "create-fire", "create-smoke", "create-trivial-smoke", "create-particle", "create-sticker", "nested-result", "play-sound", "push-back", "destroy-cliffs" or "show-explosion-on-chart".
+
Mandatory member of each table in the array. Either "damage", "create-entity", "create-explosion", "create-fire", "create-smoke", "create-trivial-smoke", "create-particle", "create-sticker", "nested-result", "play-sound", "push-back", "destroy-cliffs", "show-explosion-on-chart", "insert-item", "script", "invoke-tile-trigger" or "destroy-decoratives".
 
* If this is <code>"damage"</code>, that definition is loaded as a [[Types/DamageTriggerEffectItem]],
 
* If this is <code>"damage"</code>, that definition is loaded as a [[Types/DamageTriggerEffectItem]],
 
* If this is <code>"create-entity"</code>, that definition is loaded as a [[Types/CreateEntityTriggerEffectItem]],
 
* If this is <code>"create-entity"</code>, that definition is loaded as a [[Types/CreateEntityTriggerEffectItem]],

Revision as of 10:34, 26 May 2020

An array of types/tables, or just one types/table. The tables are each loaded as one of the Types/TriggerEffectItem extensions, depending on the value of the type key in the table.

type

Type: Types/string

Mandatory member of each table in the array. Either "damage", "create-entity", "create-explosion", "create-fire", "create-smoke", "create-trivial-smoke", "create-particle", "create-sticker", "nested-result", "play-sound", "push-back", "destroy-cliffs", "show-explosion-on-chart", "insert-item", "script", "invoke-tile-trigger" or "destroy-decoratives".

Prototype properties that use this type