Types/FootstepTriggerEffectList

From Official Factorio Wiki
Revision as of 11:44, 20 May 2020 by Bilka (talk | contribs) (Created page with "Array of CreateParticleTriggerEffectItem. Each Types/CreateParticleTriggerEffectItem|CreateParticleTriggerEffectIte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Array of CreateParticleTriggerEffectItem. Each CreateParticleTriggerEffectItem needs the extra mandatory property tiles, which is a table (array) of string which is the name of a tile.
Alternatively, instead of specifying the CreateParticleTriggerEffectItem directly in the table with the tiles property, a actions property that is an array of CreateParticleTriggerEffectItem can be specified in the table with the tiles property.

Furthermore, the table with the tiles property can contain a use_as_default property which is a boolean value. use_as_default defaults to false. When it is set to true, the trigger(s) defined in that table are the default triggers for tiles that don't have an associated footstep particle trigger (don't show up in one of the "tiles" lists).

Examples

footstep_particle_triggers =
{
  {
    tiles = { "water", "water-shallow" },
    type = "create-particle",
    particle_name = "water-particle",
    ....
  },
  {
    tiles = { "grass-1", "grass-2" },
    type = "create-particle",
    particle_name = "grass-particle",
    ....
  },
  ....
}
footstep_particle_triggers =
{
  {
    tiles = { "water", "water-shallow" },
    actions = 
    {
      {
        type = "create-particle",
        particle_name = "water-particle-1",
        ....
      },
      {
        type = "create-particle",
        particle_name = "water-particle-2",
        ....
      },
      ....
    }
  },
  {
    tiles = { "grass-1", "grass-2" },
    actions = 
    {
      {
        type = "create-particle",
        particle_name = "grass-particle-1",
        ....
      },
      {
        type = "create-particle",
        particle_name = "grass-particle-2",
        ....
      },
      ....
    }
  },
}

Prototype properties that use this type