Types/TriggerEffect: Difference between revisions
(Migrated prototype doc to separate website) |
m (Protected "Types/TriggerEffect": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
(No difference)
|
Revision as of 17:51, 16 August 2023
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.
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", "create-decorative", "nested-result", "play-sound", "push-back", "destroy-cliffs", "show-explosion-on-chart", "insert-item", "script", "set-tile", "invoke-tile-trigger", "destroy-decoratives" or "camera-effect".
- If this is
"damage"
, that definition is loaded as a Types/DamageTriggerEffectItem, - If this is
"create-entity"
, that definition is loaded as a Types/CreateEntityTriggerEffectItem, - If this is
"create-explosion"
, that definition is loaded as a Types/CreateExplosionTriggerEffectItem, - If this is
"create-fire"
, that definition is loaded as a Types/CreateFireTriggerEffectItem, - If this is
"create-smoke"
, that definition is loaded as a Types/CreateSmokeTriggerEffectItem, - If this is
"create-trivial-smoke"
, that definition is loaded as a Types/CreateTrivialSmokeEffectItem, - If this is
"create-particle"
, that definition is loaded as a Types/CreateParticleTriggerEffectItem, - If this is
"create-sticker"
, that definition is loaded as a Types/CreateStickerTriggerEffectItem, - If this is
"create-decorative"
, that definition is loaded as a Types/CreateDecorativesTriggerEffectItem, - If this is
"nested-result"
, that definition is loaded as a Types/NestedTriggerEffectItem, - If this is
"play-sound"
, that definition is loaded as a Types/PlaySoundTriggerEffectItem, - If this is
"push-back"
, that definition is loaded as a Types/PushBackTriggerEffectItem, - If this is
"destroy-cliffs"
, that definition is loaded as a Types/DestroyCliffsTriggerEffectItem, - If this is
"show-explosion-on-chart"
, that definition is loaded as a Types/ShowExplosionOnChartTriggerEffectItem, - If this is
"insert-item"
, that definition is loaded as a Types/InsertItemTriggerEffectItem, - If this is
"script"
, that definition is loaded as a Types/ScriptTriggerEffectItem, - If this is
"set-tile"
, that definition is loaded as a Types/SetTileTriggerEffectItem, - If this is
"invoke-tile-trigger"
, that definition is loaded as a Types/InvokeTileEffectTriggerEffectItem, - If this is
"destroy-decoratives"
, that definition is loaded as a Types/DestroyDecorativesTriggerEffectItem, - If this is
"camera-effect"
, that definition is loaded as a Types/CameraEffectTriggerEffectItem.