Types/FootstepTriggerEffectList
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",
....
},
....
}
},
}