Types/TriggerEffect: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(Removed old prototype docs)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
An array of [[types/table]]s, or just one [[types/table]]. The tables are each loaded as one of the [[Types/TriggerEffectItem]] extensions, depending on the value of the <code>type</code> key in the table.
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/TriggerEffect.html https://lua-api.factorio.com/latest/types/TriggerEffect.html]


== type ==
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
'''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".
* 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-explosion"</code>, that definition is loaded as a [[Types/CreateExplosionTriggerEffectItem]],
* If this is <code>"create-fire"</code>, that definition is loaded as a [[Types/CreateFireTriggerEffectItem]],
* If this is <code>"create-smoke"</code>, that definition is loaded as a [[Types/CreateSmokeTriggerEffectItem]],
* If this is <code>"create-trivial-smoke"</code>, that definition is loaded as a [[Types/CreateTrivialSmokeEffectItem]],
* If this is <code>"create-particle"</code>, that definition is loaded as a [[Types/CreateParticleTriggerEffectItem]],
* If this is <code>"create-sticker"</code>, that definition is loaded as a [[Types/CreateStickerTriggerEffectItem]],
* If this is <code>"nested-result"</code>, that definition is loaded as a [[Types/NestedTriggerEffectItem]],
* If this is <code>"play-sound"</code>, that definition is loaded as a [[Types/PlaySoundTriggerEffectItem]],
* If this is <code>"push-back"</code>, that definition is loaded as a [[Types/PushBackTriggerEffectItem]],
* If this is <code>"destroy-cliffs"</code>, that definition is loaded as a [[Types/DestroyCliffsTriggerEffectItem]],
* If this is <code>"show-explosion-on-chart"</code>, that definition is loaded as a [[Types/ShowExplosionOnChartTriggerEffectItem]],
* If this is <code>"insert-item"</code>, that definition is loaded as a [[Types/InsertItemTriggerEffectItem]].

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/TriggerEffect.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.